Usenet comp.sys.dec (1990-2013)
 help / color / mirror / Atom feed
* vt100 and vt220 terminal specs?
@ 1995-02-23 20:42 Dennis Jenkins
  1995-02-24 21:38 ` Mike Yankus
  0 siblings, 1 reply; 2+ messages in thread
From: Dennis Jenkins @ 1995-02-23 20:42 UTC (permalink / raw)


Hello,
	I'm writting a terminal emulator and I'm having trouble finding
the specs for emulating vt100 and vt220.  If my "terminal" can handle all
the escape sequences that ANSI.SYS (for msdos) can, would that be
enough for most (95%+) servers?  What is the difference between vt100 and
vt220 anyway?
	Please respond via email, as I don't get this group often.  Any
help would be appreciated.  Thanks in advance,


djenkins@umr.edu                        http://www.umr.edu/~djenkins
"The best diplomat I know is a fully loaded phaser bank" - Scotty =]
"May he go forth in the sunrise boat,  May he come to port in the sunset
boat, May he go among the imperishable stars,  May he journey in the
Boat of a Million Years." -Going Forth by Daylight, Theban Recension, 18DYN.


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: vt100 and vt220 terminal specs?
  1995-02-23 20:42 vt100 and vt220 terminal specs? Dennis Jenkins
@ 1995-02-24 21:38 ` Mike Yankus
  0 siblings, 0 replies; 2+ messages in thread
From: Mike Yankus @ 1995-02-24 21:38 UTC (permalink / raw)


In article <3iis04$8tl@hptemp1.cc.umr.edu>,
Dennis Jenkins <djenkins@saucer.cc.umr.edu> wrote:
>What is the difference between vt100 and vt220 anyway?

For the most part, anything that a VT100 can do, a VT220 can do.  There are
some subtle differences and some fancy features that many terminal emulators
don't bother implementing.

1.  VT100s ignore the high bit of an ASCII character.  Escape (033) and CSI
(233 octal) look the same.  VT100s do not support 8-bit escape sequences
beginning with CSI.  A VT220 in VT100 mode knows about this.  There are some
programs (KED) that still send VT100 escape sequences with the high bit on.
It sure does mess up if the terminal is in VT220 mode.

2.  The point of (1.) is that a VT220 can be switched back and forth, under
program control or manually, between native 220 mode, VT100 mode, and VT52
mode.  The particular escape sequences are the following (note that I always
use esc [ rather than csi because it works no matter what mode the terminal is
in, 7 or 8 bit mode):

	esc [ ? 2 l		switch to VT52 mode
	esc [ 6 1 " p		switch to VT100 mode
	esc [ 6 2 " p		switch to VT220 8-bit mode
	esc [ 6 2 ; 1 " p	switch to VT220 7-bit mode

When in VT52 mode,  esc <  returns the terminal to VT100 mode.

Many emulators simply choose VT100 or VT220 mode and don't support switching.
The way applications handle this is to query the terminal:

	esc [ c			request device attributes
	esc Z			request for VT52

VTs respond to either request as follows:

	esc [ ? 1 ; 2 c		VT100
	esc [ ? 1 ; 0 c		VT101
	esc [ ? 6 c		VT102
	esc [ ? 6 2 ... c	VT220
	esc [ ? 6 3 ... c	VT320

	The ... represent optional features, numbers separated by semicolons.
	For example:

	esc [ ? 6 3 ; 1 ; 2 ; 8 c	VT320 with 132 cols, printer, UDKs

A VT52 responds to  esc Z  with  esc / Z    It ignores  esc [ c

So an emulator must pick how to appropriately respond.  If it doesn't support
mode switching, it ignores those escape sequences and always responds to
esc [ c  in the same way.

3.  As for the complete set of escape sequences, it fills 14 pages in the
VT320 manual.  There are not that many that a VT320 supports that a VT220 does
not.  A VT100 supports about a 4th of what a VT220 does.  You really need to
get one of these manuals (VT220, or VT320) to understand all the escape
sequences.  Having access to a real VT helps too.  Sometimes you need to try
an escape sequence to see what it really does.


I'll be glad to answer any questions but I will not transcribe the entire
manual.  (It would probably violate DEC's copyright anyway.)
-- 
Mike Yankus	             
PRC Inc.                     INTERNET: yankus@ITD.Sterling.COM
1410 Wall St.                Phone:    (402) 291-8300 
Bellevue, NE. 68005-3687     FAX:      (402) 291-4362


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~1995-02-24 21:38 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1995-02-23 20:42 vt100 and vt220 terminal specs? Dennis Jenkins
1995-02-24 21:38 ` Mike Yankus

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox