From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1164f8,f70993ef51e17f0e X-Google-Attributes: gid1164f8,public X-Google-ArrivalTime: 1995-02-24 13:38:17 PST Path: nntp.gmd.de!stern.fokus.gmd.de!gmdtub!cs.tu-berlin.de!fu-berlin.de!news.dfn.de!Germany.EU.net!howland.reston.ans.net!news.sprintlink.net!uunet!in1.uu.net!sparky!yankus From: yankus@ITD.Sterling.COM (Mike Yankus) Newsgroups: comp.sys.dec Subject: Re: vt100 and vt220 terminal specs? Message-ID: <3iljk9$d7q@sparky.sterling.com> Date: 24 Feb 95 21:38:17 GMT References: <3iis04$8tl@hptemp1.cc.umr.edu> Organization: Sterling Software NNTP-Posting-Host: ssbell.itd.sterling.com In article <3iis04$8tl@hptemp1.cc.umr.edu>, Dennis Jenkins 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