Terminal and printer on 1 modem

Clarence Dold cdold at starfish.Convergent.COM
Fri Dec 23 09:58:15 AEST 1988


>From article <178 at loft386.UUCP>, by sdg at loft386.UUCP (Steve Goodrich):
> I have an interesting problem:  I need a way to use both a printer
> and a terminal on one modem.  Multiplexers and stat-muxes are too

We use several different vt100 compatibles, including Kermit on PC. 
They all respond favorably to the 'local print controller' code.
Normally, the LPDEST variable is automatically set to a printer name that
corresponds to the modem port being used ( we have 12 ).
This will take a normal lp job and print it locally, with the CRT disabled.
Keyahead continues without echo, during the printout, with echo coming 
later.
If you want to force the printout to wait until the user is ready to log off,
just enable and disable the printer, as needed, maybe even with a
trap "turnon_printer_script" 0
to catch her when she logs out.

# LP model script vt100 created by lptool
# This lp model will cause printout on a local printer 
#  attached to a vt100-compatible terminal (MS-Kermit parallel printer).
# Tested on:
#	MS-Kermit 2.31 to parallel printer:	Good
#	LINK vt220 version 1.08 to Aux port:	Good
#	HewlletPackardEmulator (CTOS VM 4.0):	No

echo "\033[5i\c"
# the ? causes printout to appear on the screen also.
# echo "\033[?5i\c"

[ standard lp model kind of stuff deleted ... ]

echo "\033[4i\c"
exit 0
-- 
Clarence A Dold - cdold at starfish.Convergent.COM         (408) 434-2083
                ...pyramid!ctnews!professo!dold         MailStop 18-011
                P.O.Box 6685, San Jose, CA 95150-6685



More information about the Comp.unix.xenix mailing list