home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / os / linux / 20298 < prev    next >
Encoding:
Text File  |  1992-12-14  |  1.5 KB  |  37 lines

  1. Newsgroups: comp.os.linux
  2. Path: sparky!uunet!zaphod.mps.ohio-state.edu!magnus.acs.ohio-state.edu!usenet.ins.cwru.edu!agate!stanford.edu!rock!concert!samba!sunSITE!jem
  3. From: jem@sunSITE.unc.edu (Jonathan Magid)
  4. Subject: Re: Help needed with HP500 printer
  5. Message-ID: <1992Dec14.080731.7236@samba.oit.unc.edu>
  6. Sender: usenet@samba.oit.unc.edu
  7. Nntp-Posting-Host: sunsite.unc.edu
  8. Organization: University of North Carolina, Chapel Hill
  9. References: <Bz7r1p.Kts@cs.uiuc.edu>
  10. Date: Mon, 14 Dec 1992 08:07:31 GMT
  11. Lines: 24
  12.  
  13. In article <Bz7r1p.Kts@cs.uiuc.edu> tgao@cs.uiuc.edu (Tong Gao) writes:
  14. >I think there was some discussion about this before. I have a hp500 printer,
  15. >and when I do cat file > /dev/lp1, the printer just print one line of text.
  16. >Could someone tell me how to make it print CR/LF? Also I copied the printcap
  17. >for HP500 sometime ago from this group, but I have no idea about how to use
  18. >it. Is there a lpr code somewhere out there I can use? Thanks in advance.
  19. >
  20. >Tong
  21. >tgao@cs.uiuc.edu
  22.  
  23.  get /pub/Linux/Incoming/set-deskjet.c on sunsite.unc.edu...
  24. it solves this problem by sending the correct init string to the printer...
  25.  
  26.  
  27.         printf("\x01b\x026\x06b\x033\x047");
  28.  
  29. in case your curious... this should also work as a shell script by
  30. echoing (with a smart echo) to /dev/lp1.
  31.  
  32. jem.
  33. -- 
  34. Jonathan Magid     jem@sunSITE.unc.edu       sunSITE Administrator
  35. Virtual pizza Delivery (tm)::faxed in 30 cycles or less or you get it
  36. ----------------------------------------FREE!!!-----------------------
  37.