*BSD News Article 91612


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!munnari.OZ.AU!news.Hawaii.Edu!news.lava.net!news-w.ans.net!newsfeeds.ans.net!philabs!blanket.mitre.org!news.mathworks.com!cyclic.gsl.net!news.gsl.net!news-penn.gsl.net!news.gsl.net!wesley.videotron.net!wagner.spc.videotron.ca!not-for-mail
From: Roger Savard <roger.savard@videotron.ca>
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: HP DeskJet400 and Color.
Date: Fri, 21 Mar 1997 20:22:12 -0500
Organization: SPC
Lines: 58
Message-ID: <33333444.41C67EA6@videotron.ca>
NNTP-Posting-Host: ppp115.104.mmtl.videotron.net
Mime-Version: 1.0
Content-Type: multipart/mixed; boundary="------------446B9B3D2781E494167EB0E7"
X-Mailer: Mozilla 3.01 (X11; I; FreeBSD 2.1.6-RELEASE i386)
Xref: euryale.cc.adfa.oz.au comp.unix.bsd.freebsd.misc:37514

This is a multi-part message in MIME format.

--------------446B9B3D2781E494167EB0E7
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

Hi,

I looked at the handbook and was able to create decent printcap
and filter files, now I'd like to use Color, would anyone be kind enough
to provide the sequence I'm missing to enable color.

Thanks in advance.

-- 
Roger Savard	
E-Mail: roger.savard@videotron.ca

--------------446B9B3D2781E494167EB0E7
Content-Type: text/plain; charset=us-ascii; name="printcap"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline; filename="printcap"

#	@(#)printcap	5.3 (Berkeley) 6/30/90

lp|local line printer:\
	:sh:\
	:lp=/dev/lpt0:sd=/var/spool/output/lpd:lf=/var/log/lpd-errs:\
	:if=/usr/libexec/lpr/if-simple:

--------------446B9B3D2781E494167EB0E7
Content-Type: text/plain; charset=us-ascii; name="if-simple"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline; filename="if-simple"

#!/bin/sh

printf "\033&k2G" || exit 2

read first_line
first_two_chars=`expr "$first_line" : '\(..\)'`

if [ "$first_two_chars" = "%!" ]; then

/usr/local/bin/gs -dSAFER -dNOPAUSE -q -sDEVICE=djet500 -sOutputFile=- - \
&& exit 0

else

	echo $first_line && /bin/cat && printf "\f" && exit 2

fi

exit 2


--------------446B9B3D2781E494167EB0E7--