From: Steve Entwistle (steve@rama.demon.co.uk)
Date: 11/21/92


From: steve@rama.demon.co.uk (Steve Entwistle)
Subject: Re: Printing on a deskjet ??
Date: 21 Nov 1992 13:23:01 GMT


In article <722312538.AA21705@remote.halcyon.com> Ron.Howard@f1.n2250.z1.fidonet.org writes:

>HELP!
> I have an HP Deskjet 500C printer and a problem. When ever I
>print from linux all I get is linefeeds no CR. On my printer this prints
>one line and then all the rest is off the page.
> Can someone tell me how to get linux to add CR to its lines?
>

Compile the following program, and then re-direct its output to your
printer. E.g.

            cc -o setdj setdj.c
            setdj > /dev/lp1

#include <stdio.h>

void main()
{
        printf("\x01b\x026\x06b\x033\x047");
}