home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / os / linux / 17446 < prev    next >
Encoding:
Text File  |  1992-11-21  |  1.0 KB  |  39 lines

  1. Newsgroups: comp.os.linux
  2. From: steve@rama.demon.co.uk (Steve Entwistle)
  3. Path: sparky!uunet!pipex!demon!rama.demon.co.uk!steve
  4. Subject: Re: Printing on a deskjet ?? 
  5. Distribution: world
  6. References: <722312538.AA21705@remote.halcyon.com>
  7. Organization: None
  8. Reply-To: steve@rama.demon.co.uk
  9. X-Mailer: Simple NEWS 1.90 (ka9q DIS 1.18)
  10. Lines: 24
  11. Date: Sat, 21 Nov 1992 13:23:01 +0000
  12. Message-ID: <722368985snz@rama.demon.co.uk>
  13. Sender: usenet@gate.demon.co.uk
  14.  
  15.  
  16. In article <722312538.AA21705@remote.halcyon.com> Ron.Howard@f1.n2250.z1.fidonet.org writes:
  17.  
  18. >HELP!
  19. >        I have an HP Deskjet 500C printer and a problem. When ever I 
  20. >print from linux all I get is linefeeds no CR. On my printer this prints
  21. >one line and then all the rest is off the page.
  22. >        Can someone tell me how to get linux to add CR to its lines?
  23. >
  24.  
  25. Compile the following program, and then re-direct its output to your
  26. printer. E.g.
  27.  
  28.             cc -o setdj setdj.c
  29.             setdj > /dev/lp1
  30.  
  31.  
  32.  
  33. #include <stdio.h>
  34.  
  35. void main()
  36. {
  37.     printf("\x01b\x026\x06b\x033\x047");
  38. }
  39.