home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.os.linux
- From: steve@rama.demon.co.uk (Steve Entwistle)
- Path: sparky!uunet!pipex!demon!rama.demon.co.uk!steve
- Subject: Re: Printing on a deskjet ??
- Distribution: world
- References: <722312538.AA21705@remote.halcyon.com>
- Organization: None
- Reply-To: steve@rama.demon.co.uk
- X-Mailer: Simple NEWS 1.90 (ka9q DIS 1.18)
- Lines: 24
- Date: Sat, 21 Nov 1992 13:23:01 +0000
- Message-ID: <722368985snz@rama.demon.co.uk>
- Sender: usenet@gate.demon.co.uk
-
-
- 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");
- }
-