Date: Sun, 20 Apr 1997 11:55:21 -0700 (PDT) From: Dan Busarow <dan@dpcsys.com> To: "Joshua M. Free" <josh@jlc.net> Cc: freebsd-questions@FreeBSD.ORG Subject: Re: HP Deskjet 660Cse Message-ID: <Pine.UW2.3.95.970420115153.1189J-100000@cedb> In-Reply-To: <19970420125406.52716@verdi.jlc.net>
next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, 20 Apr 1997, Joshua M. Free wrote: > When printing with 'lpr' I'll either get a single blank page or the > text I was trying to print except that it has the "staircase effect". > Here's the contents of /etc/printcap: > lp|HP Deskjet 660Cse:\ > :lp=/dev/lpt0:sh:sd=/var/spool/lpd/lp:\ > :lf=/var/log/lp.log: Add an input filter. From the Handbook #!/bin/sh # # hpif - Simple text input filter for lpd for HP-PCL based printers # Installed in /usr/local/libexec/hpif # # Simply copies stdin to stdout. Ignores all filter arguments. # Tells printer to treat LF as CR+LF. Writes a form feed character # after printing job. printf "\033&k2G" && cat && printf "\f" && exit 0 exit 2 Here is an example /etc/printcap from a host called orchid. It has a single printer attached to its first parallel port, a Hewlett Packard LaserJet 3Si named teak. It is using the above script as its text filter: # # /etc/printcap for host orchid # teak|hp|laserjet|Hewlett Packard LaserJet 3Si:\ :lp=/dev/lpt0:sh:sd=/var/spool/lpd/teak:mx#0:\ :if=/usr/local/libexec/hpif: Dan -- Dan Busarow 714 443 4172 DPC Systems / Beach.Net dan@dpcsys.com Dana Point, California 83 09 EF 59 E0 11 89 B4 8D 09 DB FD E1 DD 0C 82
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.UW2.3.95.970420115153.1189J-100000>