home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.os.linux
- 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
- From: jem@sunSITE.unc.edu (Jonathan Magid)
- Subject: Re: Help needed with HP500 printer
- Message-ID: <1992Dec14.080731.7236@samba.oit.unc.edu>
- Sender: usenet@samba.oit.unc.edu
- Nntp-Posting-Host: sunsite.unc.edu
- Organization: University of North Carolina, Chapel Hill
- References: <Bz7r1p.Kts@cs.uiuc.edu>
- Date: Mon, 14 Dec 1992 08:07:31 GMT
- Lines: 24
-
- In article <Bz7r1p.Kts@cs.uiuc.edu> tgao@cs.uiuc.edu (Tong Gao) writes:
- >I think there was some discussion about this before. I have a hp500 printer,
- >and when I do cat file > /dev/lp1, the printer just print one line of text.
- >Could someone tell me how to make it print CR/LF? Also I copied the printcap
- >for HP500 sometime ago from this group, but I have no idea about how to use
- >it. Is there a lpr code somewhere out there I can use? Thanks in advance.
- >
- >Tong
- >tgao@cs.uiuc.edu
-
- get /pub/Linux/Incoming/set-deskjet.c on sunsite.unc.edu...
- it solves this problem by sending the correct init string to the printer...
-
-
- printf("\x01b\x026\x06b\x033\x047");
-
- in case your curious... this should also work as a shell script by
- echoing (with a smart echo) to /dev/lp1.
-
- jem.
- --
- Jonathan Magid jem@sunSITE.unc.edu sunSITE Administrator
- Virtual pizza Delivery (tm)::faxed in 30 cycles or less or you get it
- ----------------------------------------FREE!!!-----------------------
-