SUMMARY: HP printcaps

From: Jimmy Y. Cheng (cheng@humu.nosc.mil)
Date: Mon Sep 21 1992 - 22:03:10 CDT


-------
My original query was:

> Does anyone have the printcaps for the following
> HP printers: II,III,IIIsi
> I got these on the network that doesn't have
> Newsprint but would like to use it to print text.

I received the following responses. Thanks you those who responded!
-------
>From mickel@oes.orst.edu
lwlab3|lwhp|amber:HP LaserJet IIIsi in CSWest 108, lab:\
        :lp=/dev/ttyh1:\
        :lf=/usr/spool/lw-hp/errs:\
        :sd=/usr/spool/lw-hp:\
        :af=/usr/spool/lw-hp/account:\
        :if=/usr/local/lib/psif:\
        :br#19200:mx#0:sf:sh:rw:\
        :fc#0177777:fs#003:\
        :tr=\004:
------
>From davies@gest20.SINet.SLB.COM

for laser jet III I use

lp|lw|ps|PS|hp|hpc6|laserjetc6|postscriptC6:\
        :if=/usr/local/PSfilter/psfilter:\
      :lp=/dev/ttyb:\
      :sd=/var/spool/hp:\
      :pw#80:\
      :pl#66:\
      :br#38400:rw:fc#0000374:fs#0000003:xc#0:\
      :xs#0040040:mx#0:sf:sh:

------
>From eckhard@ts.go.dlr.de

1|psout|HP Laserjet III PostScript Output|pslaser:\
        :br#19200:ms=litout:sh:sc:mx#0:\
        :lp=/dev/ttyb:\
        :lf=/var/adm/lpd.errs:\
        :af=/var/adm/lpd.acct:\
        :sd=/var/spool/lpd/psout:\
        :if=/var/spool/lpd/psout/ps-if:
#
2|dviout|HP Laserjet III TeX Output|texlaser:\
        :br#19200:ms=litout:sh:sc:mx#0:\
        :lp=/dev/ttya:\
        :lf=/var/adm/lpd.errs:\
        :af=/var/adm/lpd.acct:\
        :sd=/var/spool/lpd/dviout:\
        :if=/var/spool/lpd/dviout/dvi-if:
#
3|raw:\
        :br#19200:ms=litout:sh:sc:mx#0:\
        :lp=/dev/ttya:
        
The first is for a HPLJIII with PacificPage PostScript Emulation, the second
is only for TeX DVI-files, and the third does nothing at all but pushing the
data to the printer. The last one is used mainly for PCs running PC-NFS. Both
are connected via serial line, 2 <--> 3
                               3 <--> 2
                               7 <--> 7 and nothing else.

------

>From SHIRLEY@its.uct.ac.za

I have this one for the Laserjet IIIp:

laser|lp|HP Laserjet IIIp:\
    :lp=/dev/ttya:sd=/usr/spool/laser:\
    :br=#9600:\
    :sh:pw=#80:\
    :ms=-parenb,cs8,-echo,ixon,-istrip:\
    :tr=\f:

------
>From michael@agricola.OSSA.HQ.NASA.GOV.

I use this with a laserjet IIIP. Works great.
I've included the output filter, too. It does
some CR LF NL conversions and then forces an
eject page to get the last page out. The printer
is connected via a parallel port driven through
/dev/pp1.

hplj3|hp|HP LaserJet III:\
:of=/usr/lib/hplaserjet:\
:lp=/dev/pp1:\
:br#19200:\
:sd=/var/spool/hplj3:\
:fc#0777:\
:fs#06021:\
:lf=/usr/adm/lpd-errs:\
:pl#60:\
:mx#0:\
:sb:\
:sf:\
:sh:\
:xc#07737:\
:xs#040:

/usr/lib/hplaserjet follows: The ^[ is what `escape' looks
like when you imbed it in the file. So that it would be
visible to you, the characters below actually are `^' and
`[' and *not* the imbedded escape character. If you use
emacs, ^q will allow you to `quote' an escape into the file,
i.e. `^q<escape>' will give you the *correct* ^[. The only
reason I'm belaboring this is that when I first asked this
question, it took me a while to figure out this business of
imbedding the escape characters. Again, don't just try to
cut this shell script out of this mail message and use it as
/usr/lib/hplaserjet. It won't work. Delete the `^['
characters and imbed the escape as given above. Hope this helps.

#!/bin/csh -f
#
# @(#)hplaserjet 1.1 88/10/27 Sun Microsystems Inc 1988
#
# This file should be located in /usr/lib
#
# This is the output filter for use wth HP LaserJet I and II.
# It is called via the of entry in the generic_hp printcap entry.
# All that it does is send the escape sequence to the printer, so that:
# CR is mapper to CR
# LF is mapped to CR LF
# FF is mapped to CR FF
# and the first two lines reset the printer before each printing
#
/usr/bin/echo -n '^[E'
sleep 1
/usr/bin/echo -n '^[&k2G'
/usr/bin/cat
/usr/bin/echo -n '^[&l0H'
if ($status == 0) then
  exit 0
else
  exit 1
endif

------
>From gustavo@davinci.concordia.ca

#
#
# HPIIIsi Postscript Printer with Accounting - H899-22 Lab - POSTSCRIPT
#
lp5|qms|ps|hpl| DAVINCI HPIIIsi printer with Accounting - GVA March 20, 1992:\
        :lp=/dev/hpl:sd=/var/spool/lpd/psq:\
        :af=/var/adm/printers/accounting/lw:\
        :lf=/var/adm/printers/errors/psq:\
        :if=/site/bin/lwp.hpl.sh:\
        :br#38400:rw:\
        :fc#0177777:fs#03:xc#0177777:xs#0400040:mx#0:xc#0:\
        :ms=-parity,onlcr,ixon,-ixany,clocal:\
        :sf:sh:rs:

        It uses a home-brewed version of the Lwkit for accounting, and
does not use *any* Newsprint.We purchased this printer with the PostScript
option, so we don't need Newsprint.

------
>From adam%bwnmr4@harvard.harvard.edu
| Does anyone have the printcaps for the following
        :lp=/dev/ttyb:\
        :sd=/var/spool/lpd:\
        :br#9600:\
        :fs#06030:\
        :fc#0300:\
        :pw#132:\
        :sh:\
        :tr=\f \04:\
        :lf=/var/adm/lpd-errs:
# Alternate way to drive an HP
#
# HP LaserJet IIP:\
# :lp=/dev/ttya:br#19200:ms=-parity,onlcr,ixon,ixoff:\
# :sd=/var/spool/lpd
# :lf=/var/adm/lpd-errs:

------
>From @mail.uunet.ca:ptimof@sciex.com

lj2:laserjet2:LaserJet2:\
        :lp=/dev/ttyb:br#9600:\
        :ms=cs8,-parity,onlcr,crtscts:\
        :sd=/var/spool/lj2:lf=/var/adm/lp.log:af=/var/adm/lp.acct:

---------------------------

Note that baud rate must be set to 9600 (19200 never did seem to work quite
right), and we don't use XON/XOFF (we send graphics to the printer as
well).

-------
>From rh06113@uafsysb.uark.edu

hplaser|hp|HP LaserJet in PGL mode:\
        :lp=/dev/ttya:br#9600:\
        :ms=pass8,ixon,raw:\
        :sh:\
        :sd=/var/spool/hplaser:\
        :lf=/var/spool/lpd/log:

Of course, this means that you have to create the /var/spool/hplaser
directory.

-------



This archive was generated by hypermail 2.1.2 : Fri Sep 28 2001 - 23:06:49 CDT