Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sun-barr!newstop!texsun!convex!convex.convex.com!felps From: felps@convex.com (Robert Felps) Newsgroups: comp.unix.admin Subject: Re: need printcap entry for HP laserjet II Message-ID: Date: 17 Dec 90 13:12:42 GMT References: <7160@jhunix.HCF.JHU.EDU> Sender: news@convex.com Lines: 44 In <7160@jhunix.HCF.JHU.EDU> doug@jhunix.HCF.JHU.EDU (Douglas W O'neal) writes: >I need to hook up an HP Laserjet II to both a MIPs and a Sun-4 and am >looking for a printcap entry for it. Also, I would like a filter to >allow users to do things like rotate the output to landscape mode, a >dvi filter if available, any other useful filters. A simple printcap for hplj II: --------------------------------- cut here ---------------------------------- # lj:\ :lp=/dev/tty00:br#9600:\ :tr=\f:\ :sd=/usr/spool/Lpqs/lj:lo=lock:\ :lf=/usr/spool/Printlogs/lj_errs:\ :if=/usr/spool/Filters/lj.sh: --------------------------------- cut here ---------------------------------- A simple filter for hplj II: --------------------------------- cut here ---------------------------------- #!/bin/ksh trap "exit 1" 3 START=`date | awk '{print $2,$3,$4}'` case $1 in -c) stty raw -parity 9600 MODE=graphics shift ;; *) stty -parity cs8 9600 ixon ixany opost -nl -tabs MODE=text ;; esac cat - print "\033E\033&l60F\c" print "\014\c" END=`date | awk '{print $4}'` print "$5 $7 $MODE $START - $END" >&2 exit 0 --------------------------------- cut here ----------------------------------