3 \/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/
5 Newsgroups: comp.terminals
6 Path: utkcs2!emory!swrinde!cs.utexas.edu!wupost!gumby!destroyer
7 !news.iastate.edu!emann
8 From: emann@iastate.edu (The Emann)
9 Subject: A vt100 ctrl seq list
10 Message-ID: <1992Mar13.072004.12444@news.iastate.edu>
11 Date: 13 Mar 92 07:20:04 GMT
12 Sender: news@news.iastate.edu (USENET News System)
16 Without benefit of a vt100 programmer's reference, we've been trying
17 to locate as complete a list of control sequences for vt52/100/102's.
18 This list here was compiled from the lists we could find. Most notably
19 Rob Elliott's 'Selected ANSI Escape codes'; the Villanova list; and the
20 ANSI_X3.64-tables-from-BYTE list. We'd much rather have a reference manual,
21 but if anyone can tell us what's missing or incorrect in this list, it
22 would be greatly appreciated.
25 ----------------------------------------------
30 Name Dec Hex Action Taken
31 ------------------------------------------------------------------
32 NUL 0 0x00 ignored; Null
33 SOH 1 0x01 ignored; Start of heading
34 STX 2 0x02 ignored; Start of text
35 ETX 3 0x03 ignored; End of text
36 EOT 4 0x04 ignored; End of transmission
37 ENQ 5 0x05 Transmit answerback message
38 ACK 6 0x06 ignored; Acknowledge
39 BEL 7 0x07 Ring the bell
40 BS 8 0x08 Move cursor left
41 HT 9 0x09 Move cursor to next tab stop; Horizontal tab
42 LF 10 0x0A Line feed; causes print if in autoprint
43 VT 11 0x0B Same as LF; Vertical tab
44 FF 12 0x0C Same as LF; Form feed
45 CR 13 0x0D Move cursor to left margin or newline; Carriage return
46 SO 14 0x0E Invoke G1 character set
47 SI 15 0x0F Invoke G0 character set
48 DC1 16 0x10 ignored; Device control 1
49 XON 17 0x11 Resume transmission; Device control 2
50 DC3 18 0x02 ignored; Device control 3
51 XOFF 19 0x13 Halt transmission; Device control 4
52 NAK 20 0x14 ignored; Negative acknowledge
53 SYN 21 0x15 ignored; Syncronous idle
54 ETB 22 0x16 ignored; End of transmission block
55 CAN 23 0x17 ignored; Cancel
56 EM 24 0x18 Cancel escape sequence and display checkerboard
57 SUB 26 0x1A Same as CAN
58 ESC 27 0x1B Introduce a control sequence
59 FS 28 0x1C ignored; File separator
60 GS 29 0x1D ignored; Group separator
61 RS 30 0x1E ignored; Record separator
62 US 31 0x1F ignored; Unit separator
63 DEL 127 0x7F ignored; Delete
68 Action VT52 mode ANSI (VT100)
69 ----------------------------------------------------
70 Cursor up Esc A Esc [ Pn A
71 Cursor down Esc B Esc [ Pn B
72 Cursor right Esc C Esc [ Pn C
73 Cursor left Esc D Esc [ Pn D
75 Cursor address Esc Y Pl Pc Esc [ Pn(row);Pn(col);H or
76 Esc [ Pn(row);Pn(col);f
77 Cursor position report Esc [ 6 n
78 returns: Esc [ Pn(row);Pn(col) R
81 Reverse newline Esc I Esc M
82 Save cursor & attr Esc 7
83 Restore cursor & attr Esc 8
84 Insert line Esc [ Pn L
85 Delete line Esc [ Pn M
86 Delete character Esc [ Pn P
87 Define scrolling region Esc [ Pn(top);Pn(bot) r
88 Erase cursor to EOL Esc K Esc [ K
89 Erase BOL to cursor Esc [ 1 K
90 Erase entire line Esc [ 2 K
91 Erase cursor to EOS Esc J Esc [ J
92 Erase BOS to cursor Esc [ 1 J
93 Erase entire screen Esc [ 2 J
94 Print screen or region Esc ] Esc [ i (region in ANSI only)
95 Print cursor line Esc V Esc [ ? 1 i
96 Enter print controller Esc W Esc [ 5 i
97 Exit print controller Esc X Esc [ 4 i
98 Enter auto print Esc ^ Esc [ ? 5 i
99 Exit auto print Esc - Esc [ ? 4 i
100 Set tab at current col Esc H
101 Clr tab at current col Esc [ g
102 Clear all tabs Esc [ 3 g
103 Enter ANSI mode Esc <
104 Application keypad Esc = Esc =
105 Numeric kyepad Esc > Esc >
106 Fill screen with 'E's Esc # 8
109 returns: Esc/Z returns: Esc [ ? 6 c
110 Device attr report Esc [ c
112 Device status report Esc [ 5 n
114 Request term params Esc [ 1 x
115 returns: Esc[3;<par>;<nbits>;<xspeed>;<rspeed>;1;0x
117 Mode name Ps Set (Esc [ Ps h) Reset (Esc [ Ps l) VT100
118 -------------------------------------------------------------------------
119 Keyboard action 2 Locked Unlocked reset
120 Insertion 4 Insert Overwrite reset
121 Duplex 12 Full Half (echo) available
122 Linefeed/Newline 20 Newline Linefeed available
123 Cursor key ?1 Application Cursor available
124 ANSI/VT52 ?2 ANSI VT52 available
125 Column width ?3 132 80 available
126 Scolling method ?4 Smooth Jump available
127 Screen ?5 Reverse Normal available
128 Origin ?6 Relative Absolute available
129 Wraparound ?7 Wrap Truncate available
130 Key auto repeat ?8 Repeating No repeat available
131 Print formfeed ?18 Yes No available
132 Print extent ?19 Full screen Scolling region available
134 Character set VT52 VT100 (G0) VT100 (G1)
135 --------------------------------------------------------
136 United Kingdom (UK) Esc ( A Esc ) A
137 United States (US) Esc G Esc ( B Esc ) B
138 Graphics Esc F Esc ( 0 Esc ) 0
139 Default ROM Esc ( 1 Esc ) 1
140 Alternate ROM Esc ( 2 Esc ) 2
141 Switch to G0/G1 Esc O Esc N
143 Character attributes Ps (Esc [ Ps;Ps;Ps;...Psm)
144 ---------------------------------------------------
145 Normal (attr off) 0 Note: Ps=3 4 or 6 are unknown and
146 Bold on 1 probably redundant.
152 Change current line VT100
153 ---------------------------------------
154 To double-height top half Esc # 3
155 To double-height bottom half Esc # 4
156 To normal size Esc # 5
157 To double-width Esc # 6
159 Cursor control keys VT52 VT100 (appl mode) VT100 (cursor mode)
160 ---------------------------------------------------------------------
161 Up arrow Esc A Esc O A Esc [ A
162 Down arrow Esc B Esc O B Esc [ B
163 Right arrow Esc C Esc O C Esc [ C
164 Left arrow Esc D Esc O D Esc [ D
166 Auxilliary keypad VT52 (num) VT52 (appl) VT100 (num) VT100 (appl)
167 ------------------------------------------------------------------------
168 0 0 Esc ? p 0 Esc O p
169 1 1 Esc ? q 1 Esc O q
170 2 2 Esc ? r 2 Esc O r
171 3 3 Esc ? s 3 Esc O s
172 4 4 Esc ? t 4 Esc O t
173 5 5 Esc ? u 5 Esc O u
174 6 6 Esc ? v 6 Esc O v
175 7 7 Esc ? w 7 Esc O w
176 8 8 Esc ? x 8 Esc O x
177 9 9 Esc ? y 9 Esc O y
178 - - Esc ? m - Esc O m
179 , , Esc ? l , Esc O l
180 . . Esc ? n . Esc O n
181 Enter ^M Esc ? M ^M Esc O M
182 PF1 Esc P Esc P Esc O P Esc O P
183 PF2 Esc Q Esc Q Esc O Q Esc O Q
184 PF3 Esc R Esc R Esc O R Esc O R
185 PF4 Esc S Esc S Esc O S Esc O S
190 ASCII code Symbol displayed
191 ------------------------------------
196 j Lower-right box corner
197 k Upper-right box corner
198 l Upper-left box corner
199 m Lower-left box corner
201 o Horizontal line - scan 1 (bottom)
202 p Horizontal line - scan 3
203 q Horizontal line - scan 5 (matches with box corners)
204 r Horizontal line - scan 7
205 s Horizontal line - scan 9 (top)
211 y Less-than-or-equal-to sign
212 z Greater-than-or-equal-to sign
218 ---------------------------------------
221 \/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/
223 Path: utkcs2!memstvx1!ukma!asuvax!cs.utexas.edu!usc!elroy.jpl.nasa.gov!wvus
225 Newsgroups: comp.terminals
226 Subject: Re: A vt100 ctrl seq list
227 Message-ID: <295@blars.UUCP>
228 From: blarson@blars.UUCP
229 Date: 13 Mar 92 10:13:23 GMT
230 Reply-To: blarson@usc.edu
231 References: <1992Mar13.072004.12444@news.iastate.edu>
234 In article <1992Mar13.072004.12444@news.iastate.edu>,
235 emann@iastate.edu (The Emann) writes:
237 > Without benefit of a vt100 programmer's reference, we've been trying
238 > to locate as complete a list of control sequences for vt52/100/102's.
240 Even if you had one, it wouldn't list them all. A couple of examples:
241 (Genuine vt100, imitators probably get them wrong. (Dec never was good
242 at imitating their own terminals.))
244 Esc [ 2 ; 8 y Wait for poweroff.
245 Esc [ 2 ; 15 y Flashing background mode. Also puts terminal in local.
247 Also, many sequences produced different results at different speeds.
248 The original VT100 terminal has many undocumented modes such as 24
249 duplicate lines, linefeed goes up, etc.
252 blarson@usc.edu usc!blarson blarson@zog
253 C news and rn for os9/68k!
255 \/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/