1 REM Ins{nd av Bo Kullmar SYSOP <1789> 1987-03-15 12.40.29 (KERMIT) Detta {r en sammanst{llning av inl{ggen 3263-3266 av Stefan Berg <216> med beskrivning av VT100 och ADM3A koder. VT100 programming reference card ================================ ANSI COMPATIBLE MODE Cursor Movement Commands Cursor up ESC [ Pn A Cursor down ESC [ Pn B Cursor forward (right) ESC [ Pn C Cursor backward (left) ESC [ Pn D Direct Cursor Adressing ESC [ Pl; Pc H Direct Cursor Adressing ESC [ Pl; Pc f Index ESC D Next Line ESC E Reverse index ESC M Save cursor and attributes ESC 7 Restore cursor and attributes ESC 8 Line Size (Double-Height and Double-Width) Commands Change this line to double-height top half ESC # 3 Change this line to double-height bottom half ESC # 4 Change this line to single-width single-height ESC # 5 Change this line to double-width single-height ESC # 6 Character Attributes ESC [ Ps;Ps;Ps;...;Ps m Ps = 0 or None All Attributes Off 1 Bold on 4 Underscore on 5 Blink on 7 Reverse video on Erasing From cursor to end of line ESC [ K From cursor to end of line ESC [ 0 K From beginning of line to cursor ESC [ 1 K Entire line containing cursor ESC [ 2 K From cursor to end of screen ESC [ J From cursor to end of screen ESC [ 0 J From beginning of screen to cursor ESC [ 1 J Entire screen ESC [ 2 J Programmable LEDs ESC [ Ps;Ps;...;Ps q PS = 0 or None All LEDs Off 1 L1 on 2 L2 on 3 L3 on 4 L4 on Character sets (G0 and G1 designators) Character Set G0 G1 United Kingdom (UK) ESC ( A ESC ) A United States (USASCII) ESC ( B ESC ) B Special graphics characters ESC ( 0 ESC ) 0 and line drawing set Alternate Character ROM ESC ( 1 ESC ) 1 Alternate Character ROM ESC ( 2 ESC ) 2 special graphics charaters Scrolling Region ESC [ Pt; Pb r Tab Stops Set tab at current column ESC H Clear tab at current column ESC [ g Clear tab at current column ESC [ 0 g Clear all tabs ESC [ 3 g Modes To Set To Reset Mode Name Mode Sequence Mode Sequence Line feed/new line New line ESC [ 20 h Line Feed ESC [ 20 / * Cursor key mode Application ESC [ ? 1 h Cursor ESC [ ? 1 / ANSI/VT52 mode ANSI VT52 ESC [ ? 2 / Column mode 132 col ESC [ ? 3 h 80 col ESC [ ? 3 / Scrolling mode Smooth ESC [ ? 4 h Jump ESC [ ? 4 / Screen mode Reverse ESC [ ? 5 h Normal ESC [ ? 5 / Origin mode Relative ESC [ ? 6 h Absolute ESC [ ? 6 / Wraparound On ESC [ ? 7 h Off ESC [ ? 7 / Auto repeat On ESC [ ? 8 h Off ESC [ ? 8 / Interlace On ESC [ ? 9 h Off ESC [ ? 9 / Graphic proc. option On ESC 1 Off ESC 2 Keypad mode Application ESC = Numeric ESC > * The last character ("/") of the sequence is a lowercase L (154 ). 8 Reports Cursor Position Report Invoked by ESC [ 6 n Response is ESC [ Pl; Pc R Status Report Invoked by ESC [ 5 n Response is ESC [ 0 n (terminal ok) ESC [ 3 n (terminal not ok) What Are You Invoked by ESC [ c Invoked by ESC [ 0 c Response is ESC [ ? 1 ; Ps c Ps = 0 Base VT100, no options 1 Processor option (STP) 2 Advanced video option (AVO) 3 AVO and STP 4 Graphics processor option (GPO) 5 GPO and STP 6 GPO and AVO 7 GPO, STP, and AVO Alternately invoced by ESC Z (not recommended). Response is the same. Reset ESC c Confidence Tests Fill Sceen with "Es" ESC # 8 Invoke Test(s) ESC [ 2 ; Ps y Ps = 1 Power-up self test (ROM checksum, RAM, NVR, keyboard and AVO if installed) 2 Data Lopback * 4 EIA Modern Control Test * 8 Repeat selected test(s) indefinitely (until failure or power off) * Loopback connector required VT52 COMPATIBLE MODE Cursor Up ESC A Cursor Down ESC B Cursor Right ESC C Cursor Left ESC D Select Special Graphics ESC F character set Select ASCII charachter set ESC G Cursor to home ESC H Reverse line feed ESC I Erase to end of screen ESC J Erase to end of line ESC K Direct cursor address ESC Pl Pc (see note 1) Identify ESC Z (see note 2) Enter alternate keypad mode ESC = Exit alternate keypad mode ESC > Enter ANSI mode ESC < Note 1: Line and column numbers for DCA are single character codes whose values are the desired number plus 37 . 8 Note 2: Response to ESC Z is ESC / Z. Auxiliary Keypad Codes VT52 VT52 VT100 VT100 Numeric Application Numeric Application Key Mode Mode Mode Mode 0 0 ESC ? p 0 ESC 0 p 1 1 ESC ? q 1 ESC O q 2 2 ESC ? r 2 ESC 0 r 3 3 ESC ? s 3 ESC O s 4 4 ESC ? t 4 ESC O t 5 5 ESC ? u 5 ESC O u 6 6 ESC ? v 6 ESC O v 7 7 ESC ? w 7 ESC O w 8 8 ESC ? x 8 ESC O x 9 9 ESC ? y 9 ESC O y - (minus) - ESC ? m - ESC O m , (comma) , ESC ? /* , ESC O /* . (period) . ESC ? n . ESC O n ENTER (RETURN) ESC ? M (RETURN) ESC O M PF1 ESC P ESC P ESC O P ESC O P PF2 ESC Q ESC Q ESC O Q ESC O Q PF3 ESC R ESC R ESC O R ESC O R PF4 ESC S ESC S ESC O S ESC O S * The last character of the sequence is a lowercase (154 ) 8 ADM-definitioner, hittade p} Kicki ================================== ;--------------------------------------------------------------------- ; ; Lear Seigler ADM-3A. ; Terminal Name: "ADM3A" Cursor Up: ^K Cursor Down: Linefeed Cursor Left: Backspace Cursor Right: ^L Cursor Home: ^^ Clear Screen: ^Z DCA Lead In String: Escape "=" DCA Column First: No DCA Column Offset: 32 DCA Row Offset: 32 Terminal width: 80 Terminal page length: 24 Fixed tab stops every 8 columns: No Wrap around from last column: No ;--------------------------------------------------------------------- ; ; Lear Seigler ADM-31 ; Terminal Name: "ADM31" Cursor Up: ^K Cursor Down: Linefeed Cursor Left: BackSpace Cursor Right: ^L Cursor Home: ^^ Erase from cursor to end of line: Escape "T" Clear Screen: Escape ";" DCA Lead In String: Escape "=" DCA Column First: No DCA Column Offset: 32 DCA Row Offset: 32 Insert Character mode ON: Escape "Q" Delete Character: Escape "W" Insert Line: Escape "E" Delete Line: Escape "R" Terminal width: 80 Terminal page length: 24 Fixed tab stops every 8 columns: No Wrap around from last column: Yes ;---------------------------------------------------------------------