From: SMTP%"RELAY-INFO-VAX@CRVAX.SRI.COM" 1-FEB-1994 15:53:34.22 To: EVERHART CC: Subj: Re: Terminal type inquiries From: pdsmith@bbn.com (Peter D. Smith) X-Newsgroups: comp.terminals,comp.os.vms,vmsnet.misc Subject: Re: Terminal type inquiries Date: 1 Feb 1994 01:01:59 GMT Lines: 332 Distribution: world Message-Id: Nntp-Posting-Host: spca.bbn.com To: Info-VAX@CRVAX.SRI.COM X-Gateway-Source-Info: USENET drw@euler.mit.edu (Dale R. Worley) writes: >Several terminal types (especially VT52 and VT100, which I'm >interested in) will answer with particular escape sequences when they >receive particular escape sequences. This can be used to determine >the terminal type automatically. (VMS uses this technique.) I'm >writing a program which needs to do this, but I don't know the inquiry >and response escape sequences. Can anybody tell me that they are? >Thanks, >Dale >Dale Worley Dept. of Math., MIT drw@math.mit.edu >-- Didn't I just post this? Deja vu, man! Here's a list that I've compiled over the years; no guarantees on the quality. It's also a bit hard to understand and more than a little terse. On the other hand, it's free :-) ---------------------------------------------------------------------------- Transmit terminal id. 240: '0' can be NULL. Does a Terminal Reset on HDS AVT/GVT HDS "Transmit Terminal Identifier" 240 "DA" or 240 "Device attributes" 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 10) concept AVT User's Manual page 3-11 11) Grafpoint TGRF-05 v1.2 Reference Manual (1984) 12) Walker Richer & Quinn Reflection 1/7 Tech Ref. 13) DecWriter IV (LA34) User Guide (1981) page 60 14) DEC LCP01 Color Pringer System User's Guide 15) DEC LN03 Programmer Reference Manual 16) DEC LN03 Plus Programmer Reference Manual 17) TEK 4105 Computer Display Termain Programmers Reference Manual 17) TEK 4107/4109 ditto 18) TEK 4200 Series ditto 19) CIE Terminals CIT 467 Users Manual 20) CIE Terminals CIT 500 Users Manual 21) BBN Bitgraph Programmer's Manual page 4-15 22) DEC VT100 manual (Installing & Using) 23) DataGraph VTC80022 page 64 24) Digital Engineering Retrographics manual (1983) 25) Diablo C150 Color Ink Jet Printer 26) Diablo 620/630 Robot Typewriter 27) Epson FX80 User's Manual (1983) 28) Envision Model 215 Color Graphics Terminal (1983) page 5-5 29) GraphOn GO-200 (1986) page 51 30) Hazeltine 1420 (1979) VDT Reference Manual 31) HEATH H19 (1979) 32) Houston Instrament DMP-29 33) Visual 550 (1984) page 8-5 34) Westward 2215B 2216 2219 (+others?) 1986 tech pub TP1019 2200/3200 series graphic terminal 35) RSTERM 1.8 Internals Reference Manual (1990) 36) XTERM Control Sequences (1990) (private communication) 37) DECTERM (1990) (sequences determined by experimentation) 38) MS Kermit 39) Radio Shack WP2 (private communication) 40) DEC VT420 41) DECTerm Manual (1990) EK-DTERM-GM-001 & -PM-001 42) DEC Ansi-compliant printing protocol manual 43) DEC LG02 manual 44) Wyse 60 manual DEC Terminals and Printers Handbook supplied info for the following devices: (1987 Edition. All data is from Appendix E LA12 DECwriter Correspondant LA50 LA120 LA210 LetterPrinter LQP02 ***** VT5x CLASS DEVICES ***** 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 ***** VT100 CLASS DEVICES ***** Terminals VT100 through VT199 return ESC[ ? Psc; Ps1; ... Psn c Psc Operating Level 1 VT100 2 VT102 (?private communication with Scott Minkin) 3 DECwrite IV 5 VK100 (GIGI) 6 VT102 (?private communication with Scott Minkin) 7 cit500 (?strange,but repeated twice in manual) 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 ***** DEC LCP02 CLASS DEVICES ***** DEC LCP01 (LCG01) Color Printing System uses a different scheme: Psc 28 LCP01 37 LG02 Ps1..Psn indicate which of the following extensions the terminal supports. Ps Meaning 1 ReGIS graphics software loaded 2 Color Sixel graphics software loaded 3 NAPLPS (?graphics software) 4 GIDIS (?graphics software) ***** VT2xx and higher CLASS DEVICES ***** Psc Operating Level 61 Level 1 (VT100 family) 62 Level 2 (VT200 family) 63 Level 3 (VT300 family) 64 Level 4 (VT400 family) 73 Ansi Printing Level 3 (DecLaser 2000 etc) Ps1..Psn indicate which of the following extensions the terminal supports. Ps Meaning 1 132 columns 2 Printer Port 3 ReGIS graphics 4 Sixel graphics 5 AVO option (132 char wide) *NOT* installed 5 OR Katakana [DEC printer] 6 Selective erase 6 OR Sheet Feeder [DEC printer] 7 Soft character set (DRCS) 8 User-defined keys 8 OR Legal sized paper [DEC printer] 9 National replacement character sets 9 OR Variable Page Format Selects [DEC Printer] 10 Text Ruling Vector 11 25th Status Line 11 OR Multiple Copies [DEC Printer] 12 Terminal is a VT125 12 OR Hebrew Character Sets [DEC Printer] 13 Local editing mode 14 8-bit architecture 15 Technical character set 16 Locator device port (ReGIS) [ansi locator is #29) 16 OR Logical Duplex [DEC Printer] 17 Terminal State Reports 18 Windowing capability 18 OR Physical Duplex [DEC Printer] 19 Dual sessions 19 OR Font Face Tumbling [DEC Printer] 21 Horizontal Scrolling (VT420) 22 Color Text 29 ANSI text locator 30-39 Foreground Color 40-49 Background Color 39 page memory extenstion Colors: 30 or 40 + one of the following values: 0=black 1=red 2=green 3=yellow 4=blue 5=magenta 6=cyan 7=white 9=default 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 Grafpoint TGRAF-05 1.2 (1984) Terminal Emulator will return ESC/Z TERMINALS WITH ONE RESPONCE --------------------------- cit467 will return ESC[?1;2c cit500 will return ESC[?7c RSTERM will return ESC[?1;0c t4105 will return ESC[?1;2c t4107 will return ESC[?1;2c t4109 will return ESC[?1;2c t42-- will return ESC[?1;2c VK100 will return ESC[?5c or ESC[?5;0c VT100 will return ESC[?1;[0 to 7]c VT105 will return ESC[?1;[0 to 7]c VT125 will return ESC[?12;[5 or 7];[0 or 1];[Rom Version] VT220 will return ESC[?62;1;2;6;7;8;9c VT240 will return ESC[?62;1;2;3;4;6;7;8;9c VT300 will return ESC[?63;1;2;3;4;6;7;8;9;13;15;16;18;19c OTHER TERMINALS AND PRINTERS ---------------------------- BBN BitGraph will return ESC[1;0c VT100 mode ESC/Z VT52 mode ESC[?50;;;c Native or Tek mode where = (major*256)+minor eg 3.04->772 = K mem in terminal = emu setting mode Datagraph VTC8002 will return ESC[?1;0c DEC Ansi-Compliant Printing Protocol will return DEC DECTerm Decwindows terminal emulator will return ESC[?63;1;3;4;6;8;9;15;16;29c (DECTerm ID) ESC[?63;1;3;4;6;8;9;13;15;16;18;19c (VT340 ID) ESC[?63;1;3;4;6;8;9;13;15;16;18;19c (VT330 ID) ESC[?63;1;6;8;9c (VT320 ID) ESC[?62;1;3;4;6;8;9c (VT240 ID) ESC[?62;1;6;8;9c (VT220 ID) ESC[?12;7;1;10;102c (VT125 ID) ESC[?6c (VT102 ID) ESC[?1;0c (VT101 ID) ESC[1;2c (VT100 ID) Warning! Manual and test reveal different return values! DEC LA12 DECwriter Correspondent will return ESC[?15;1c DEC LA34 DECprinter IV will return ESC[?3;7c DEC LA36 DECWriter II DEC LA38 DECwriter IV will return DEC LA50 will return ESC[?17c DEC LA75 will return ESC[?17c (la50 mode) ESC[?10;3c (la210 mode) ESC[?72;5;;7c (72=level 2;5=Katakana;sheet feeder; 7=DECDLD DEC LA100 will return ESC[?10c (V1 microcode, 7-bit only) ESC[?10;2c (V2 microcode, 7 or 8 bit) DEC LA120 DECwriter III will return ESC[?2c DEC LA180 DECprinter I DEC LA210 LetterPrinter will return ESC[?10;3c (V2 microcode - 8 bit) DEC LCP01 will return ESC[?28c ESC[?28;1;2;3;4c DEC LG02 will return ESC[?37c DEC LN03 will return ESC[?26c (ln03 mode) ESC[?13c (lqp02 mode) ESC[?10c (LA100 mode) DEC LQP02 will return ESC[?13;c DEC LN03 plus will return ESC[?26;2c (ln03 mode) ESC[?13c (lqp02 mode) ESC[?10c (LA100 mode) DEC VT420 will return ESC[?1;2c (vt100) ESC[?1;0c (vt101) ESC[?6c (vt102) ESC[?62;1;2;6;7;8;9c (vt220) ESC[?63;1;2;6;7;8;9c (vt320) ESC[?64;1;2;6;8;9;15;18;19;21c (NATIVE MODE) DEC VT1000 will return ESC[?1;2c (vt100) ESC[?1;0c (vt101) ESC[?6c (vt102) ESC[?62;1;2;6;7;8;9c (vt220) ESC[?63;1;2;6;7;8;9c (vt320) ESC[?63;1;2;6;8;9;15;29c (vt1000) ESC[?63;1;3;4;6;7;8;9;15;16;29v (DECterm emulator) Digital Retrographics will not alter underlying behaviour of VT1xx Diablo C150 Ink Jet Printer -- no action Diablo 630/620 Robot Typewriters -- no action Epson FX80 -- no action Envision model 215 color graphics terminal will return ESC[1;11c Grafpoint TGRAF-05 v1.2 will return ESC[?1;2c GraphOn GO-200 series will return ESC[?1;2c (VT100 w/AVO) ESC[?1;11c (VT100 w/printer port) ESC[?6c (VT102) ESC[?62;1;2;6;7;8c (VT220) ESC[?62;1;2;3;4;6;7;8c (VT240) ESC[?12;7;1;19;102c (VT125) Hazeltine 1420 -- no action Heath H19 ESC Z return ESC/K Houston Instraments DMP-29 -- no action HDS Concept AVT/GVT will return ESC[?1;2c (vt100) ESC[=1;1c (4 pages of display memory) ESC[=1;2c (8 pages of display memory) KERMIT (MS-) will return ESC[?6c (vt102) ESC[?63;1;2;7;8;9c (vt320) ESC/Z (vt52) ESC/K (h19) Visual 550 will return ESC[?1;2c (VT100) ESC[?1;3c (VT100 w/printer) Walker Richer & Quinn Reflection1/7 will return ESC[?6c (vt102) ESC[?1;0c (vt100) ESC[?1;2c (vt100 w/AVO) ESC[?1;11c (vt100 with printer) ESC[?62;1;2;6;7;8c (vt220 normal) ESC[?62;1;2;6c (reflection) Westward 2215B 2216 2219 (+others?) will return ESC[?1;2c Wyse 60 will return ESC[?1;0c Wy-75 mode ESC[?1;2c VT100 mode ESC/Z VT52 mode xterm return value is not documented