Path: utzoo!utgpu!attcan!uunet!husc6!uwvax!tank!mimsy!dftsrv!ames!oliveb!pyramid!ctnews!starfish!cdold From: cdold@starfish.Convergent.COM (Clarence Dold) Newsgroups: comp.unix.xenix Subject: Re: Terminal and printer on 1 modem Message-ID: <900@starfish.Convergent.COM> Date: 22 Dec 88 23:58:15 GMT References: <178@loft386.UUCP> Organization: Convergent Technologies, San Jose, CA Lines: 36 From article <178@loft386.UUCP>, by sdg@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@starfish.Convergent.COM (408) 434-2083 ...pyramid!ctnews!professo!dold MailStop 18-011 P.O.Box 6685, San Jose, CA 95150-6685