The text of a manual · part 22 of 33
TE 2000 VT/ANSI Terminal Emulation Programmer's Guide: Section 6: Programming, pages 175 to 184
Pages 175 to 184 of 278, from TE 2000 VT/ANSI Terminal Emulation Programmer's Guide
The original document is the PDF (4.0 MB). This is its text as extracted, unedited; tables and drawings read best in the PDF, and each page heading opens it at that page.
For the Intermec 6400
Page 175
Section 6
Programming "
"
"
"
"
"
"
"
"
"
"
"
"
"
"
"
"
"
"
"
This section describes programming for the terminals. This section contains the following information: "
"
"
"
The received codes the terminals support. Received codes include C0 and C1 control characters, character sets, and terminal modes (page 6-9). The transmitted keyboard codes generated by the terminals’ keys and sent to the host computer (page 6-31). The capability of the terminals to emulate VT/ANSI terminal top-row function, main keypad, editing, and auxiliary keys (page 6-32). VT340 applications supported by the terminals. Applications include working in local editing and interactive modes, and creating text forms (page 6-28).
Character Encoding The implementation of VT/ANSI terminal emulation supports both 7-bit and 8-bit communications environments. The implementation consists of an 8-bit asynchronous character encoding scheme and a 7-bit code extension technique so that the terminal is compatible with ANSI and ISO standards. All 8-bit codes can be referenced by using two-byte ESCape sequences in accordance with ANSI standard X3.41 ---- 1974. The document commonly referred to when ANSI is mentioned is ANSI X3.64 ---1979, Additional Controls for Use With American National Standard for Information Interchange. The ANSI X3.64 standard controls character imaging devices such as the VT200 terminal. ANSI and ISO determine the current standards for character encoding in the communications industry.
Character Sets The terminal processes most characters it receives from the host computer based on characters whose codes and functions are defined and standardized by ANSI. The types are 7-bit and 8-bit character codes.
Multinational Character Set The DEC multinational character set consists of C0, GL, C1, and GR codes.
C0 and GL Codes
The left half of the multinational character set consists of control characters (C0 codes) and graphic characters (GL codes). Control characters are 7-bit compatTE 2000t VT/ANSI Terminal Emulation Programmer’s Guide
6-1
Page 176
SECTION 6
Programming ible, nondisplayable single-byte characters that perform specific functions during communications and text processing. C0 codes range from 00 to 1F hexadecimal, and include 7F hexadecimal (DEL) and can be used in a 7- or 8-bit environment. Graphic characters are 7-bit compatible, displayable characters that represent various alphanumeric characters, punctuation marks, and symbols that appear in the terminal’s display. GL codes range from 21 to 7E hexadecimal. They can be used in a 7-bit or an 8-bit environment. The space character (20 hexadecimal) may be a graphic character or a control character, depending on the context. Table 6-1 shows the C0 and and GL codes recognized by the terminal. Ignored codes are parsed (removed) from the data stream with no action taken by the terminal. Codes that the terminal ignores are also indicated in the table. Table 6-2 (next page) describes the action taken by the terminal when it receives a C0 code. Table 6-1 C0 and GL Codes row
0 column b8 bits b7 b6 b5 b4 b3 b2 b1
0
0
1 0
0
0
0
2 0
0
0
1
3 0
1
0
0 1
1
1
5 0
0
1
0
6 0
0
1
1
7 0
1
1
0
1
1
DLE
16 10
SP
32 20
0
48 30
@
64 40
P
80 50
‘
96 60 p
112 70
DC1
17 11
!
33 21
1
49 31
A
65 41
Q
81 51 a
97 61 q
113 71
DC2
18 12
I
34 22
2
50 32
B
66 42
R
82 52 b
98 62 r
114 72
3 03
DC3
19 13
#
35 23
3
51 33
C
67 43
S
83 53 c
99 63 s
115 73
EOT
4 04
DC4
20 14
$
36 24
4
52 34
D
68 44
T
84 54 d
100 64 t
116 74
0 1 0 1
ENQ
5 05
NAK
21 15
%
37 25
5
53 35
E
69 45
U
85 55 e
101 65 u
117 75
6
0 1 1 0
ACK
6 06
SYN
22 16
&
38 26
6
54 36
F
70 46
V
86 56 f
102 66 v
118 76
7
0 1 1 1
BEL
7 07
ETB
23 17
’
39 27
7
55 37
G
71 47
W
87 57 g
103 67 w
119 77
8
1 0 0 0
BS
8 08
CAN
24 18
(
40 28
8
56 38
H
72 48
X
88 58 h
104 68 x
120 78
9
1 0 0 1
HT
9 09
EM
25 19
)
41 29
9
57 39
I
73 49
Y
89 59 i
105 69 y
121 79
A
1 0 1 0
LF
10 0A
SUB
26 1A
*
42 2A
:
58 3A
J
74 4A
Z
90 5A j
106 6A z
122 7A
B
1 0 1 1
VT
11 0B
ESC
27 1B
+
43 2B
;
59 3B
K
75 4B
[
91 5B k
107 6B
{
123 7B
C
1 1 0 0
FF
12 0C
FS
28 1C
,
44 2C
<
60 3C
L
76 4C
\
92 5C l
108 6C
~
124 7C
D
1 1 0 1
CR
13 0D
GS
29 1D
--
45 2D
=
61 3D
M
77 4D
]
93 5D m
109 6D
}
125 7D
E
1 1 1 0
SO
14 0E
RS
30 1E
.
46 2E
>
62 3E
N
78 4E
^
94 5E n
110 6E
~
126 7E
F
1 1 1 1
SI
15 0F
US
31 1F
/
47 2F
?
63 3F
O
79 4F
_
95 5F o
111 6F
DEL
127 7F
0
0 0 0 0
NUL
0 00
1
0 0 0 1
SOH
1 01
2
0 0 1 0
STX
2 02
3
0 0 1 1
ETX
4
0 1 0 0
5
(XON)
(XOFF)
C0 Codes Legend: decimal
ENQ 505 hexadecimal code recognized by the terminal decimal NUL 000 hexadecimal code ignored by the terminal
6-2
0
4
TE 2000t VT/ANSI Terminal Emulation Programmer’s Guide
GL Codes (ASCII Graphics Character Set)
Page 177
SECTION 6
Programming
Table 6-2 C0 Control Characters and Terminal Action Mnemonic
Hex Name
Action
NUL SOH STX ETX EOT ENQ
00 01 02 03 04 05
Null Start of heading Start of text End of text End of transmission Enquiry
ACK BEL BS
06 07 08
Acknowledge Bell Backspace
HT
09
Horizontal tab
LF
0A
Line feed
VT FF CR SO (LS1)
0B 0C 0D 0E
SI (LS0)
0F
DLE DC1 (XON )
10 11
Vertical tab Form feed Carriage return Shift out (Lock shift G1) Shift in (Lock shift G0) Data link escape Device control 1
Ignored. Ignored. Ignored. Ignored. Ignored. Generates Answerback message. Set number of characters in the message (0--30) through the terminal’s firmware. If the terminal is operating in ANSI mode, it ignores this character. Ignored. Generates bell tone if bell is enabled. Moves cursor one column to the left. If cursor is in Column 1, takes no action. Moves cursor to predetermined tab stop. Moves cursor to right margin if there are no tab stops. Causes a line feed or new line operation, depending on how the LNM received code is set. Processes as LF (line feed). Processes as LF (line feed). Moves cursor to Column 1 of the current row. Invokes G1 character set into GL.
DC2 DC3 (XOFF)
12 13
Device control 2 Device control 3
DC4 NAK
14 15
SYN ETB
16 17
CAN EM SUB
18 19 1A
Device control 4 Negative acknowledgment Synchronous table End transmission block Cancel End of medium Substitute
ESC
1B
Escape
FS GS RS
1C 1D 1E
File separator Group separator Record separator
US DEL
1F 7F
Unit separator Delete
Invokes G0 character set into GL. Ignored. Clears DC3 if XOFF support is enabled, which causes the terminal to continue sending characters (keyboard unlocks). Ignored. If XOFF support is enabled, causes the terminal to stop sending characters until it receives a DC1 control character. Ignored. Ignored. Ignored. Ignored. Terminates and cancels any sequence in progress. Ignored. Terminates, cancels escape or control sequence, or terminates the device control string and displays reverse question mark. Processes as escape sequence introducer. Terminates any escape, control, or device control sequence in process. Ignored. Ignored. If guarded area transfer mode (GATM) is reset, the record separator is processed as a protected field entry. Ignored. Ignored; it cannot be used as a fill character.
TE 2000t VT/ANSI Terminal Emulation Programmer’s Guide
6-3
Page 178
SECTION 6
Programming
C1 and GR Codes The right half of the DEC multinational character set consists of eight-bit control codes (C1 codes) and supplemental graphic characters (GR codes). C1 codes are nondisplayable codes that perform additional functions beyond those possible with the C0 codes. C1 codes range from 80 to 9F hexadecimal. The supplemental graphic characters set (GR codes) range from A0 hexadecimal to FF hexadecimal. The set has alphabetic characters with accents and diacritical marks that appear in the major Western European alphabets. It also has other symbols not included in the ASCII graphics set. Table 6-3 shows the C1 control characters and GR codes recognized by the terminal. Ignored codes are parsed (removed) from the data stream with no terminal action taken. Ignored codes are also indicated in the table. Note that some letters that are normally in uppercase are converted into lowercase. The hexadecimal values for the converted letters are C0, C1, C2, C8, CA, CB, CC, CD, CE, CF, D9, DA, and DB. (These values may be supported correctly in later versions.) Table 6-3 C1 and GR Codes 8 1
0
9 1
0
0
0 128 80
10 1
0
1
1 1
0
0
DCS
144 90
NBSP
160 A0
129 81
PU1
145 91
¡
161 A1
130 82
PU2
146 92
¢
162 A2
£
163 A3
131 83 d
12 1
1
1
1
1 0
1
0
à
192 C0
177 B1
á
2
178 B2
3
179 B3
14 1
0
1
1
Ð
208 D0
193 C1
Ñ
â
194 C2
Ã
195 C3
‘
180 B4 r
176 B0
13
15 1
1
1
0
1 column
1 row b8 bits b7 b6 b5 b4 b3 b2 b1
à
224 E0
ð
240 F0
0 0 0 0
0
209 D1
á
225 E1
ñ
241 F1
0 0 0 1
1
Ò
210 D2
â
226 E2
ò
242 F2
0 0 1 0
2
Ó
211 D3
ã
227 E3
ó
243 F3
0 0 1 1
3
Ä
196 C4
Ô
212 D4
ä
228 E4
ô
244 F4
0 1 0 0
4
STS
147 93
IND
132 84
CCH
148 94
¤
164 A4
NEL
133 85
MW
149 95
¥
165 A5
P
181 B5
Å
197 C5
Õ
213 D5
å
229 E5
õ
245 F5
0 1 0 1
5
SSA
134 86
SPA
150 96
¦
166 A6
¶
182 B6
Æ
198 C6
Ö
214 D6
æ
230 E6
ö
246 F6
0 1 1 0
6
ESA
135 87
EPA
151 97
§
167 A7
∙
183 B7
Ç
199 C7
X
215 D7
ç
231 E7
247 F7
0 1 1 1
7
HTS
136 88
152 98
I
168 A8
,
184 B8
è
200 C8
Ø
216 D8
è
232 E8
ø
248 F8
1 0 0 0
8
HTJ
137 89
153 99
E
169 A9
1
185 B9
É
201 C9
ù
217 D9
é
233 E9
ù
249 F9
1 0 0 1
9
VTS
138 8A
154 9A
ª
170 AA
º
186 BA
ê
202 CA
ú
218 DA
ê
234 EA
ú
250 FA
1 0 1 0
A
PLD
139 8B
CSI
155 9B
«
171 AB
»
187 BB
ë
203 CB
û
219 DB
ë
235 EB
û
251 FB
1 0 1 1
B
PLU
140 8C
ST
156 9C
™
172 AC
188 BC
ì
204 CC
Ü
220 DC
ì
236 EC
ü
252 FC
1 1 0 0
C
RI
141 8D
OSC
157 9D, 173 AD
189 BD
í
205 CD
Ý
221 DD
í
237 ED
ÿ
253 FD
1 1 0 1
D
SS2
142 8E
PM
158 9E
R
174 AE
190 BE
î
206 CE
Þ
222 DE
î
238 EE
Þ
254 FE
1 1 1 0
E
SS3
143 8F
APC
159 9F, 175 AF
191 BF
ï
207 CF
ß
223 DF
ï
239 EF
ÿ
255 FF
1 1 1 1
F
C1 Codes Legend:
¿
GR Codes (DEC Supplemental Graphics)
decimal IND 132 84 code recognized by the terminal decimal HTJ 137 89 code ignored by the terminal hexadecimal hexadecimal
6-4
0
11
TE 2000t VT/ANSI Terminal Emulation Programmer’s Guide code not yet standa ANSI and ignored b terminal
Page 179
SECTION 6
Programming
Table 6-4 describes the terminal action when it receives a C1 control code. Table 6-4 C1 Control Characters and Terminal Action Mnemonic Hex IND NEL SSA ESA HTS HTJ VTS PLD PLU RI SS2 SS3 DCS PU1 PU2 STS CCH MW SPA EPA
CSI ST OSC PM APC
Name
Action
80–83 84 Index
Ignored. Moves cursor down one line in same column. If cursor is at bottom margin, display performs a scroll up. 85 Next line Moves cursor to first position on next line. If cursor is at bottom margin, display performs a scroll up. 86 Start of selected area Selects which current page characters the terminal can send to the host. 87 End of selected area Ends the selected area that is sent to the host when forms are created for VT340 terminal emulation. 88 Horizontal tab set Sets one horizontal tab stop at column with cursor. 89 Horizontal tab w/justify Ignored. 8A Vertical tabulation set Ignored. 8B Partial line down Ignored. 8C Partial line up Ignored. 8D Reverse index Moves cursor up one line in same column. If cursor is at top margin, display performs a scroll down. 8E Single shift 2 Temporarily invokes G2 character set into GL for the next graphic character. G2 is designated by a select character set (SCS) sequence. 8F Single shift 3 Temporarily invokes G3 character set into GL for the next graphic character. G3 is designated by an SCS sequence. 90 Device control string Processes as opening delimiter of a device control string for device control use. 91 Private use 1 Ignored. 92 Private use 2 Ignored. 93 Set transmit state Ignored. 94 Cancel character Ignored. 95 Message waiting Ignored. 96 Start of protected area Starts the protected area in page memory that cannot be edited when forms are created from the host. 97 End of protected area Ends the protected area in page memory that cannot be edited when forms are created from the host. 98–9A Ignored. 9B Ctrl sequence introducer Processes as control sequence introducer. 9C String terminator Processes as the closing delimiter of a string opened by DCS and processes code as the end of a line of extended command characters. 9D O/S command Ignored. 9E Privacy message Ignored. 9F App program command Processes code as the start of a line of extended command characters.
Display Controls Mode The terminal does not support the VT/ANSI terminal display controls mode, which displays control codes as graphic characters for debugging. TE 2000t VT/ANSI Terminal Emulation Programmer’s Guide
6-5
Page 180
SECTION 6
Programming
Dynamically Redefinable Character Set The terminal does not support the dynamically redefinable character set (DRCS), which is a 94-character set created on the VT/ANSI terminal and down-line loaded into the terminal DRCS buffer.
Special Graphics Character Set The terminal supports most of the DEC special graphics character set. The set contains ASCII C0 codes and most of the GL codes. It also has special symbols and short line segments. You would normally use these characters to create a limited range of drawings while working in text mode. Table 6-5 shows special graphics characters recognized by the terminal. Ignored codes are parsed (removed) from the data stream with no action taken by the terminal. Ignored and unsupported codes are also indicated in the table. Table 6-5 Special Graphics Character Set row
0 column b8 bits b7 b6 b5 b4 b3 b2 b1
0
0
1 0
0
0
0
0
0 0 0 0
NUL
00
1
0 0 0 1
SOH
01
2 0
0
0
1
3 0
1
0
0
1
4 0 1 1
5 0
0
1
0
6 0
0
1
1
7 0
1
1
0
DLE
10
SP
20
0
30
@
40
P
50
60
DC1
11
!
21
1
31
A
41
Q
51
61
(XON)
1
1 70
--
71
SCAN 5
2
0 0 1 0
STX
02
DC2
12
I
22
2
32
B
42
R
52
62
72
3
0 0 1 1
ETX
03
DC3
13
#
23
3
33
C
43
S
53
63
73
(XOFF)
4
0 1 0 0
EOT
04
DC4
14
$
24
4
34
D
44
T
54
64
74
5
0 1 0 1
ENQ
05
NAK
15
%
25
5
35
E
45
U
55
65
75
6
0 1 1 0
ACK
06
SYN
16
&
26
6
36
F
46
V
56
66
A
76
7
0 1 1 1
BEL
07
ETB
17
’
27
7
37
G
47
W
57
67
T
77
8
1 0 0 0
BS
08
CAN
18
(
28
8
38
H
48
X
58
68
~
78
9
1 0 0 1
HT
09
EM
19
)
29
9
39
I
49
Y
59
69
79
A
1 0 1 0
LF
0A
SUB
1A
*
2A
:
3A
J
4A
Z
5A
¼
6A
7A
B
1 0 1 1
VT
0B
ESC
1B
+
2B
;
3B
K
4B
[
5B
º
6B
7B
C
1 1 0 0
FF
0C
FS
1C
,
2C
<
3C
L
4C
\
5C
ª
6C
7C
D
1 1 0 1
CR
0D
GS
1D
--
2D
=
3D
M
4D
]
5D
¬
6D
7D
E
1 1 1 0
SO
0E
RS
1E
.
2E
>
3E
N
4E
^
5E
+
6E
7E
F
1 1 1 1
SI
0F
US
1F
/
2F
?
3F
O
4F
6F
7F
Legend: 5F
6-6
C0 Codes (ASCII Nondisplayable Control Character Set)
GL Codes (DEC Special Graphics Character Set)
code not supported and character displayed may change without notice
TE 2000t VT/ANSI Terminal Emulation Programmer’s Guide
5F
Page 181
SECTION 6
Programming
National Replacement Character Sets The terminal supports the 7-bit national replacement character (NRC) sets for European languages. The NRC sets are similar to the 7-bit ASCII set, except for a few characters. You designate the character sets as hard using escape sequence formats as on page 6-8. Table 6-6 lists characters in each NRC set that are different from the ASCII set. The terminal does not support “¾” (40 hexadecimal) in the Dutch NRC set. Table 6-6 National Replacement Character Set Hexadecimal 23
40
5B 5C 5D 5E 5F 60
ASCII
#
@
[
\
]
^
_
‘
{
|
}
~
British
£
@
[
\
]
^
_
‘
{
|
}
~
Dutch
£
ÿ
½
|
^
_
‘
¨
ƒ
¼
’
Finnish
#
@
Ä
Ö
Å
Ü
_
é
ä
ö
å
ü
French
£
à
_
ç
§
^
_
‘
é
ù
è
¨
French Canadian
#
à
â
ç
ê
î
_
ô
é
ù
è
û
German
#
§
Ä
Ö
Ü
^
_
‘
ä
ö
ü
ß
Italian
£
§
_
ç
é
^
_
ù
à
ò
è
ì
Norwegian/Danish
#
@
Æ
Ø
Å
^
_
‘
æ
ø
å
~
Portuguese
#
@
Ã
Ç
Õ
^
_
‘
ã
ç
õ
~
Spanish
£
§
¡
Ñ
¿
^
_
‘
‘
_
ñ
ç
Swedish
#
É
Ä
Ö
Å
Ü
_
é
ä
ö
å
ü
Swiss
ù
à
é
ç
ê
î
è
ô
ä
ö
ü
û
Character Set
7B 7C 7D 7E
Table 6-7 Greek National Replacement Character Set (6400, 5020, 5055, 59XX, 17XX, 11XX Terminals) row
0 column b8 bits b7 b6 b5 b4 b3 b2 b1
0
0
1 0 0
0
2 0 1
1
3 0 0
1
4 1 1
0
5 1 0
0
6 1 1
1
7 1 0
1
1
20
D
30
³
40
P
50
à
60
P
70
‘
21 r
31
A
41
R
51 a
61
Ó
71
’
22
2
32
B
42
52 b
62 j
72
£
23 b
33
G
43
S
53
U
63 s
73
14
24 c
34
D
44
T
54 d
64 t
74
05
15
25
µ
35
E
45
U
55
Ñ
65 u
75
0 1 1 0
06
16
¦
26
¶
36
Z
46
F
56 j
66
Ä
76
7
0 1 1 1
07
17
§
27
∙
37
H
47
X
57 h
67 x
77
8
1 0 0 0
08
18
¨
28
¸
38
Q
48
Y
58
Ò
68
Y
78
9
1 0 0 1
09
19
E
29
¹
39
I
49
W
59 i
69 w
79
A
1 0 1 0
0A
1A
2A
º
3A
K
4A
Ú
5A
κ
6A
ú
7A
B
1 0 1 1
0B
1B
«
2B
»
3B
L
4B
Û
5B l
6B
û
7B
C
1 1 0 0
0C
1C
™
2C
¼
3C
M
4C
Ü
5C m
6C
ü
7C
D
1 1 0 1
0D
1D
SHU
2D
½
3D
N
4D
Ý
5D n
6D
ý
7D
E
1 1 1 0
0E
1E
2E
¾
3E
C
4E
Þ
5E c
6E
þ
7E
F
1 1 1 1
0F
1F
¿
3F
O
4F i
5F o
6F
0
0 0 0 0
00
10
1
0 0 0 1
01
11
2
0 0 1 0
02
12
3
0 0 1 1
03
13
4
0 1 0 0
04
5
0 1 0 1
6, 2F
TE 2000t VT/ANSI Terminal Emulation Programmer’s Guide
7F
6-7
Page 182
SECTION 6
Programming
Character Set Selection The terminal supports hard character sets. It does not support designating soft (down-line loadable) character sets.
Designating Hard Character Sets
Designate hard character sets using the escape sequence format in Table 6-8. Table 6-8 Hard Character Set Escape Sequences Escape Sequence
Designated As
Supplemental and special graphics sets: 1B hexadecimal 28 hexadecimal ESC ( (Final) 1B hexadecimal 29 hexadecimal ESC ) (Final) 1B hexadecimal 2A hexadecimal ESC * (Final) 1B hexadecimal 2B hexadecimal ESC + (Final) NRC sets: 1B hexadecimal 2D hexadecimal ESC -(Final) 1B hexadecimal 2E hexadecimal ESC . (Final) 1B hexadecimal 2F hexadecimal ESC / (Final)
G0 G1 G2 G3
G1 G2 G3
The final character in the escape sequence represents the character set you want to designate. For the terminal, the final characters are indicated in Table 6-9. Table 6-9 Hard Character Set Final Characters Character Set ASCII Special graphics National replacement
Final Character (Hex)
B (42) 0 (30) British A (41) Dutch 4 (34) Finnish* 5 (35) or C (43) French R (52) French Canadian* 9 (39) or Q (51) German K (4B) Italian Y (59) Norwegian/Danish* ‘ (60) or E (45) Portuguese % (25) Spanish Z (5A) Swedish* 7 (37) or H (48) Swiss = (3D) Greek** 6 (36) (Private extension) * The first code shown is recommended. ** Applies only to 6400, 5020, 5055, 59XX, 17XX, and 11XX Terminals. 6-8
TE 2000t VT/ANSI Terminal Emulation Programmer’s Guide
Page 183
SECTION 6
Programming
Locking Shifts
The terminal applies the locking shift (LS) control functions in Table 6-10. Locking shifts LS1R, LS2, LS2R, LS3, and LS3R are not available in VT100 mode or ANSI mode. Table 6-10 Locking Shifts Control Name
Code
Function
LS0 (Locking shift 0)
SI (0F hexadecimal)
Map G0 into GL (default)
LS1 (Locking shift 1)
SO (0E hexadecimal)
Map G1 into GL
LS1R* (Locking shift 1, right)
ESC ~ (1B, 7E hexadecimals)
Map G1 into GR
LS2* (Locking shift 2)
ESC n (1B, 6E hexadecimals)
Map G2 into GL
LS2R* (Locking shift 2, right)
ESC } (1B, 7D hexadecimals)
Map G2 into GR
LS3* (Locking shift 3)
ESC o (1B, 6F hexadecimals)
Map G3 into GL
LS3R* (Locking shift 3, right)
ESC | (1B, 7C hexadecimals)
Map G3 into GR
*
Available only in VT320 and VT340 modes.
Received Codes Received codes are codes the terminal receives from an application or host computer. The following pages describe received codes, and the action taken by the terminal when it receives the codes from an application or host.
Select C1 Controls Select C1 controls (code extension announcers) control the representation of C1 control codes returned to the application. The terminal supports select 7-bit and 8-bit C1 control transmission (Table 6-11). " NOTE:
The terminal does not support DECSCL sequences. Table 6-11 Select C1 Controls
Transmission
Sequence Action
Select 7-bit C1 Control (S7C1T)
ESC sp F
Converts all C1 codes returned to the application to their equivalent 7-bit code extensions.
Select 8-bit C1 Control (S8C1T) (Ignored in VT100 and ANSI modes.)
ESC sp G
Returns C1 codes to the application without converting them to their equivalent 7-bit code extensions.
TE 2000t VT/ANSI Terminal Emulation Programmer’s Guide
6-9
Page 184
SECTION 6
Programming
Terminal Modes A mode is one of several operating states used by the terminal. Table 6-12 lists selectable terminal modes and the action taken by the terminal in set mode and reset mode. " NOTE:
The last character of each reset mode sequence is lowercase L (6C hexadecimal). Table 6-12 Selectable Terminal Modes
Mode (Mnemonic) Keyboard action (KAM) Insert/ Replace (IRM)
Send/Receive (SRM))
Line feed/ New line (LNM)
Cursor key (DECCKM) ANSI/VT52 (DECANM) Column (DECCOLM)
Set Mode Reset Mode Locked
Sequence CSI 2 h
Action Locks the keyboard for all following keystrokes.
Unlocked
CSI 2 l
Unlocks the keyboard.
Insert
CSI 4 h
Selects insert mode. New display characters move old display characters to the right. Characters moved past the right margin are lost. Text moved into a protected character field is lost. If erasure mode (ERM) is reset, text moved into a protected character field is lost.
Replace
CSI 4 l
Selects replace mode. New display characters replace old display characters at cursor position. Old character is erased.
Off
CSI 1 2 h
Disables local echo. When the terminal sends characters to the host, the host must echo them back to the display.
On
CSI 1 2 l
Enables local echo. When the terminal sends characters, they are automatically sent to the display.
New line
CSI 2 0 h
Causes a received LF, FF, or VT code to move the cursor to the first column of the next line. “Return” sends both a CR and an LF code.
Line feed
CSI 2 0 l
Causes received LF, FF, or VT code to move cursor to the next line in the current column. “Return” sends a CR code only.
Application
CSI ? 1 h
Causes cursor keys to send application control functions.
Cursor
CSI ? l l
Causes cursor keys to send ANSI cursor control sequences.
(None)
(None)
Not applicable.
VT52
CSI ? 2 l
Ignored.
132 column
CSI ? 3 h
Ignored.
80 column
CSI ? 3 l
Selects 80 columns per line.
Scrolling (DECSCLM)
Smooth
CSI ? 4 h
Ignored.
Jump
CSI ? 4 l
Lets the terminal add lines to the display as fast as possible.
Screen (DECSCNM)
Reverse
CSI ? 5 h
Ignored.
Normal
CSI ? 5 l
Selects normal (light characters on a dark background).
Origin
CSI ? 6 h
Ignored.
Absolute
CSI ? 6 l
Ignored.
On
CSI ? 7 h
Graphic display characters received when the cursor is at right margin appear on the next line. The display scrolls up if cursor is at end of the scrolling region.
Off
CSI ? 7 l
Graphic display characters received when cursor is at right margin replace previously displayed characters.
Origin (DECOM) Auto wrap (DECAWM)
6-10
TE 2000t VT/ANSI Terminal Emulation Programmer’s Guide