Path: utzoo!utgpu!watserv1!watmath!att!ima!bbn.com!pdsmith From: pdsmith@bbn.com (Peter D. Smith) Newsgroups: comp.sys.dec Subject: Re: Want info on VTnnn responses to ESC[c Message-ID: <58398@bbn.BBN.COM> Date: 24 Jul 90 21:01:00 GMT References: <1990Jul24.102646.22766@gdr.bath.ac.uk> Sender: news@bbn.com Reply-To: pdsmith@spca.bbn.com (Peter D. Smith) Organization: Bolt Beranek and Newman Inc., Cambridge MA Lines: 109 In article <1990Jul24.102646.22766@gdr.bath.ac.uk> P.Smee@bristol.ac.uk (Paul Smee) writes: >I'm looking for something which will allow me to make sense of the >various codes returned by VTnnn (nnn>=100) terminals when they are hit >with a 'what are you' sequence. E.g. ESC[?1;c seems to indicate a [..deleted..] >-- >Paul Smee, Computing Service, University of Bristol, Bristol BS8 1UD, UK > P.Smee@bristol.ac.uk - ..!uunet!ukc!bsmail!p.smee - Tel +44 272 303132 This is far, far more than you wanted, but I had it handy.... I have taken the information below from the following manuals: 1) VT330/VT340 Programmer Reference Manual Volumn 1 page 197 2) VT240series Programmer Reference Manual page 100 3) VT220 Programmer Reference Manual page 94 4) VT125 User Guide page 4-33 5) VT105 Graphic Terminal User's manual page 2-15 6) VT100 User Guide page 46 7) VK100 (sic) GIGI Terminal Installation and Owner's Manual page 68 8) VT55-E,F,H,J DECgrpahic Scope Users' Manual page 5-18 9) Decscope User's Manual page 22 I'm ignoring terminals like the VT80 and VT286 (Japanese version) Terminal Responces: The terminal responds by sending its sevice code and basic attributes to the host. This responce deponds on the terminal's current operating level (VT100 or VT300). Format of returned data (VT100 and up) CSI ? Psc; Ps1; ... Psn c VT5x use the ESC Z query command and respond as follows: TERMINAL WITH(/OUT) COPIER VT50 na ESC/A VT50H ESC/J ESC/H VT52 ESC/L ESC/K VT55 ESC/C ESC/C VT55 E,F,H,J ESC/E ESC/E Terminals VT100 through VT199 Psc Operating Level 1 VT100 5 VK100 (GIGI) 12 VT125 Ps1 indicates the combination of extensions 0 No options 1 STP Processor option 2 AVO Advanced Video options (132 character AND 24 lines! Wow!) 3 STP & AVO 4 GPO Graphics Option 5 GPO and STP 6 GPO and AVO 7 GPO and STP and AVO A VT125 has the GPO and STP options, so it will return either a 5 or 7. Ps2 is for the VT125 only 0 No printer 1 Printer attached to the printer port Ps3 is for the VT125 only VT200 and higher: Psc Operating Level 61 Level 1 (VT100 family) 62 Level 2 (VT200 family) 63 Level 3 (VT300 family) Ps1..Psn indicate which of the following extensions the terminal supports. The items marked (sic) are duplicate values or generally poor ideas (eg, the rom version) Ps Meaning 1 132 columns 2 Printer Port 3 ReGIS graphics 4 Sixel graphics 5 AVO option (132 char wide) *NOT* installed 6 Selective erase 7 Soft character set (DRCS) 8 User-defined keys 9 National replacement character sets 12 Terminal is a VT125 13 Local editing mode 15 Technical character set 16 Locator device port 18 Windowing capability 19 Dual sessions All return values preceeded with ESC[? VT5x use the ESC Z query command and respond as follows: TERMINAL WITH(/OUT) COPIER VT50 na ESC/A VT50H ESC/J ESC/H VT52 ESC/L ESC/K VT55 ESC/C ESC/C VT55 E,F,H,J ESC/E ESC/E VK100 will return 5c or 5;0c VT100 will return 1;[0 to 7]c VT105 will return 1;[0 to 7]c VT125 will return 12;[5 or 7];[0 or 1];[Rom Version] VT220 will return 62;1;2;6;7;8;9c VT240 will return 62;1;2;3;4;6;7;8;9c VT300 will return 63;1;2;3;4;6;7;8;9;13;15;16;18;19c