SUMMARY: HP LJ III printcap

From: Rick Emerson (unixsys@ssg.com)
Date: Fri Mar 05 1993 - 09:26:23 CST


My thanks to the many people who offered a number of solutions to my
request. For anyone using VM, I'll be happy to send the entire folder
(it's BIG!). To keep things brief, here's the printcap entry I went
with:

lp|LaserJetIII:\
        :pw#80:\
        :lp=/dev/pp0:\
        :sd=/var/spool/(null):\
        :br#9600:\
          :fs#06030:\
        :fc#0300:\
        :of=/usr/lib/hplaserjet:

And here's hplaserjet:
#!/bin/csh -f
#
# @(#)hplaserjet 1.1 88/10/27 Sun Microsystems Inc 1988
#
#
# This is the output filter form use with HP laserjets I and II.
# It is called via the of entry in the generic_hp printcap entry
# All it does is send the escape sequence to the printer, so that:
# CR is mapped to CR
# LF is mapped to CR LF
# FF is mapped to CR FF
/usr/bin/echo -n '<CRTL-V><ESC>k2G'
#enable wraparound
/usr/bin/echo -n '<CTRL-V><ESC>s0C'
/usr/bin/cat
if ($status == 0) then
        exit 0
else
        exit 1
endif

Note that I've substituted <CTRL-V> and <ESC> for the actual
characters in the script. Edit the actual two characters in each line
before trying to use the script, of course.

Rick

Thanks to:
adam@bwnmr4.harvard.edu Adam Shostack
ekurgpol@develop-law.usc.edu Elmar Kurgpold
phill@hivnet.ubc.ca Phill St-Louis
srm@shasta.gvg.tek.com Steve Maraglia
andrews@Erin.GOV.AU Andrew Scarman
rhallqui@rigel.uark.edu Roy S. Hallquist
        (Master Printcap Listing Vol. V -- extra thanks!)
ian@vortex.yorku.ca Ian Lumb
        (Also sent MPL Vol. V)
rick@adc.com Rick Larson
gary@erg.aberdeen.ac.uk Gary Whittington
aribi@geo.vu.nl Arie Brikker
cengiz@tet.uni-hannover.de Cengiz Oezcan-Barlach
        (Auf Deutsch! Danke schoen!)

 System Support Group | #include <witty_saying>
 940 Delaware Avenue | #include <standard_disclaimer>
 Lansdale, PA 19446 |
 (215) 855-1607 |



This archive was generated by hypermail 2.1.2 : Fri Sep 28 2001 - 23:07:33 CDT