From: jrw@psl.wisc.edu
Subject: Re: VT220 with printer?
Date: Mon, 14 Feb 94 19:41:54 GMT [thread overview]
Message-ID: <1994Feb14.194154.12569@pslu1.psl.wisc.edu> (raw)
In-Reply-To: 2jjfom$3n8@sparky.cs.nyu.edu
In article <2jjfom$3n8@sparky.cs.nyu.edu>, m-ad0016@smosna.cs.nyu.edu (Alex Diamantis) writes:
>
> I've just inherited a Vt220 which I generally just
>use to read news from home. I was wondering if it's
>possible to connect a printer to it, for "print screens".
>Is this possible...the Vt is not connected to a network
>or anything..just a modem, and the printer I'd like to use
>is a dot matrix.
Yes! In fact, I do all my computing from home with a dumb terminal and
a PostScript printer. While the user interface isn't pretty, I can get
nice output for low cost.
To do this, simply hook up a printer to the printer port on the back of
the terminal (if you need the pinouts, e-mail me the number of pins on
the printer port of your terminal). And you can do better than screen
dumps... by sending an escape sequence to your screen, it tells VMS to
send all characters after that to the printer port rather than to the
screen. For example,
$ esc[0,8] = 27
$ write sys$output esc,"[5i" ! Enter printer controller mode, causing
$ ! all characters sent to the terminal
$ ! to go to the printer, instead of the
$ ! screen (except XON, XOFF, NULL).
$ type 'infile' ! "print" the file.
$ write sys$output esc,"[4i" ! Exit printer controller mode, causing
$ ! all characters to return to their
$ ! regularly scheduled destination.
I bought a PostScript printer because the VT-type terminals will not pass
three characters: ascii 0, ascii XON, and ascii XOFF, so you can't print
graphics with a non-PostScript printer (ascii 0 is heavily used).
I have software that I got off the net that creates a virtual device called
PP (for Printer Port) that allows you to copy a file to PP:, and it will
come out on your printer (uses the escape sequences as above, but it's easier
to use this from within programs [like WP for VMS]).
--
Jim Winkle, PSL System Manager jrw@psl.wisc.edu 608-877-2261
Physical Sciences Laboratory jrw@wiscpsl.bitnet
University of Wisconsin - Madison psl::jrw
next prev parent reply other threads:[~1994-02-14 19:41 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
1994-02-12 20:55 VT220 with printer? Alex Diamantis
1994-02-14 18:53 ` Tim Llewellyn
1994-02-14 19:41 ` jrw [this message]
1994-02-15 15:02 ` Tim Kennedy
1994-02-16 10:53 ` pbricker
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox