Subject: Re: Printing w/CR's
To: Robert Shady <rls@zeus.id.net>
From: Simon J. Gerraty <sjg@zen.void.oz.au>
List: current-users
Date: 04/09/1994 19:57:57
> Certainly, but I'm trying to find the "standard" way to do it. Are you
> saying our LPT configs are so bad you have to HACK the driver to get it
> to work with your printer?
The "standard" way to do this is to use a filter.
All of the following refer to the same printer...
lp|Hp 4MP as line printer at 300dpi:\
:if=/usr/libexec/lpr/hplp:\
:sh:lp=/dev/lpt0:sd=/var/spool/lpd:lf=/var/log/lpd-errs:
ljr|lj|Hp 4MP:\
:if=/usr/libexec/lpr/hpf:\
:sh:lp=/dev/lpt0:sd=/var/spool/ljr:lf=/var/log/lpd-errs:
hp600|Hp 4MP printer at 600dpi:\
:if=/usr/libexec/lpr/hp600:\
:sh:lp=/dev/lpt0:sd=/var/spool/ljh:lf=/var/log/lpd-errs:
hp300|lw|Hp 4MP printer at 300dpi:\
:if=/usr/libexec/lpr/hp300:\
:sh:lp=/dev/lpt0:sd=/var/spool/ljl:lf=/var/log/lpd-errs:
draft|Hp 4MP printer in econo-mode:\
:if=/usr/libexec/lpr/hpdraft:\
:sh:lp=/dev/lpt0:sd=/var/spool/ljd:lf=/var/log/lpd-errs:
Each of the above filters is a link to lpfilter which I hacked up from
the hplp filter posted by Curt Mayer <curt@mofo.toad.com>. My filter
reads /etc/lpfiltcap to find initialization and reset strings to send
to the printer. The standard initialization tells the printer to
expand LF's to CR/LF. Of course you could make the filter do the
expansion yourself...
I'll package up lpfilt and post it shortly...
--sjg
------------------------------------------------------------------------------