🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.postscript
Article #2687

TI MicroLaser Driver

#2687
From: John Pettitt
Date: Wed, 01 Aug 1990 08:10
59 lines
1716 bytes
The script below is part of the driver script for a TI MicroLaser PS.  The
nice thing about this printer is that it can switch between PostScript
and HP Laser Jet II on the fly !   The script tries to figure our what
you are printing and put the printer in the right mode.

This script is for the SCO UNIX version of lp your mileage may (will) vary.


[ top half of script dleted as it is copyright elan (came with eroff) ]

while [ $i -le $COPIES ]
do
	for f in $FILES
	do
		case "`file $f`" in
		*data)
			# HPLJ Graphics data
			cat /usr/spool/lp/admins/lp/interfaces/pstohp
			cat $f
			cat /usr/spool/lp/admins/lp/interfaces/hptops
			;;
		*)
			case "`sed 1q $f`" in
				%!*)
				# Just spit out the file.
					$CAT "$f"
					echo ''
					;;
				*)
				# Just text, so convert to PostScript first.
					$PSPRINT "$f"
					echo ''
					;;
			esac
			;;
		esac
	done
	i=`expr $i + 1`
done

exit 0


Here is the pstohp file:
^D
% switch from postscript mode to hp mode 
serverdict begin 0 exitserver
statusdict begin 5 setsoftwareiomode end
^D

 and here is the sequence to put in the hptops file

ESC DLE 0  (0x1b 0x10 0x60)

Hope this is of help to anybody else using this printer.
-- 
John Pettitt, Specialix International, 
Email: jpp@specialix.com Tel +44 (0) 9323 54254 Fax +44 (0) 9323 52781
Disclaimer: Me, say that ?  Never, it's a forged posting !
Technical Details
Message-ID: <1990Aug1.081021.29970@specialix.co.uk>
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!mcsun!ukc!slxsys!jpp

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!mcsun!ukc!slxsys!jpp
From: jpp@specialix.co.uk (John Pettitt)
Newsgroups: comp.lang.postscript
Subject: TI MicroLaser Driver
Message-ID: <1990Aug1.081021.29970@specialix.co.uk>
Date: 1 Aug 90 08:10:21 GMT
Organization: Specialix International, London
Lines: 59