The text of a manual · part 19 of 33
VT220/ANSI Terminal Emulation Programmer's Reference Guide: Section 8: Programming, pages 137 to 146
Pages 137 to 146 of 276, from VT220/ANSI Terminal Emulation Programmer's Reference Guide
The original document is the PDF (1.4 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 137
Section 8
Programming "
"
"
"
"
"
"
"
"
"
"
"
"
"
"
"
"
"
"
"
"
"
"
"
"
"
"
"
Overview This section describes programming for the wireless stations. This section contains the following information: "
"
"
"
Received codes that the wireless stations support. Received codes include C0 and C1 control characters, character sets, and terminal modes. The transmitted codes generated by the wireless stations’ keys and sent to the host computer. The capability of the wireless stations to emulate VT220 terminal top-row function, main keypad, editing, and auxiliary keys. VT330/VT340 terminal applications supported by the wireless stations. Applications include working in local editing and interactive modes, and creating text forms.
VT220/ANSI Terminal Emulation Programmer’s Reference Guide
8-1
Page 138
SECTION 8
"
Programming
Character Encoding The implementation of VT220/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 wireless station 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 like the VT220. ANSI and ISO determine the current standards for character encoding in the communications industry.
Character Sets The wireless station 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.
8-2
VT220/ANSI Terminal Emulation Programmer’s Reference Guide
Page 139
SECTION 8
"
Programming
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 compatible, 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). They can be used in a 7-bit or an 8-bit environment. Graphic characters are 7-bit compatible, displayable characters that represent various alphanumeric characters, punctuation marks, and symbols that appear in the wireless station’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 8-1 shows the C0 and and GL codes recognized by the wireless station. Ignored codes are parsed (removed) from the data stream with no action taken by the wireless station. Codes that the wireless station ignores are also indicated in the table. Table 8-2 describes the action taken by the wireless station when it receives a C0 code.
VT220/ANSI Terminal Emulation Programmer’s Reference Guide
8-3
Page 140
SECTION 8
"
Programming
Table 8-1 C0 Control and Graphic Characters 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
4 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:
GL Codes (ASCII Graphics Character Set)
decimal
ENQ 505 hexadecimal code recognized by the wireless station decimal NUL 000 hexadecimal code ignored by the wireless station
8-4
VT220/ANSI Terminal Emulation Programmer’s Reference Guide
Page 141
SECTION 8
"
Programming
Table 8-2 C0 Control Characters and Wireless Station Action Mnemonic Hex Name
Wireless Station Action
NUL
00
Null
Ignores this code.
SOH
01
Start of heading
Ignores this code.
STX
02
Start of text
Ignores this code.
ETX
03
End of text
Ignores this code.
EOT
04
End of transmission Ignores this code.
ENQ
05
Enquiry
Generates an answerback message. You set the number of characters in the message (0--30) through the wireless station’s firmware.
ACK
06
Acknowledge
Ignores this code.
BEL
07
Bell
Generates bell tone if bell is enabled.
BS
08
Backspace
Moves cursor one column to the left. If cursor is in Column 1, takes no action.
HT
09
Horizontal tab
LF
0A
Line feed
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.
VT
0B
Vertical tab
Processes as LF (line feed).
FF
0C
Form feed
Processes as LF (line feed).
CR
0D
Carriage return
Moves cursor to Column 1 of the current row.
SO (LS1)
0E
Shift out (Lock shift G1)
Invokes G1 character set into GL.
SI (LS0)
0F
Shift in (Lock shift G0)
Invokes G0 character set into GL.
DLE
10
Data link escape
Ignores this code.
VT220/ANSI Terminal Emulation Programmer’s Reference Guide
8-5
Page 142
SECTION 8
"
Programming
Table 8-2 (Continued) C0 Control Characters and Wireless Station Action Mnemonic Hex Name
Wireless Station Action
DC1
11
Device control 1
DC2
12
Device control 2
DC3
13
Device control 3
DC4
14
Device control 4
NAK
15
Negative acknowledgment
Ignores this code.
SYN
16
Synchronous table
Ignores this code.
ETB
17
End transmission block
Ignores this code.
CAN
18
Cancel
Terminates and cancels any sequence in progress.
EM
19
End of medium
Ignores this code.
SUB
1A
Substitute
ESC
1B
Escape
FS
1C
File separator
Terminates and cancels the 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. Ignores this code.
GS
1D
Group separator
Ignores this code.
RS
1E
Record separator
US
1F
Unit separator
If guarded area transfer mode (GATM) is reset, the record separator is processed as a protected field entry. Ignores this code.
DEL
7F
Delete
(XON)
(XOFF)
8-6
Clears DC3 if XOFF support is enabled, which causes the wireless station to continue sending characters (keyboard unlocks). Ignores this code. If XOFF support is enabled, causes the wireless station to stop sending characters until it receives a DC1 control character. Ignores this code.
Ignores this code; cannot be used as a fill character.
VT220/ANSI Terminal Emulation Programmer’s Reference Guide
Page 143
SECTION 8
"
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 8-3 shows the C1 control characters and GR codes recognized by the wireless station. Ignored codes are parsed (removed) from the data stream with no action taken by the wireless station. Codes that the wireless station ignores 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 8-4 describes the action taken by the wireless station when it receives a C1 control code.
VT220/ANSI Terminal Emulation Programmer’s Reference Guide
8-7
Page 144
SECTION8 " Programming
Table 8-3 C7 Control! Characters
8 9 10 1 12 13 14 15 column row 1 1 1 1 1 1 1 0 0 (0) 0 1 1 1 0 0 1 1 0 0 1 0 1 0 1 0 1 0 128 144 tool ° lize} . | 492 . | 224 go | PSS | oo | NBSP | ao Bo} #7 | co a | £0 ] _ | 161 177) , {1931 ,, |200] , |2a5) . Jaa i tas] * jar] 4 tes] S jor] 4 Jer] ® je] 99°01 1 1oz2) 2 |47e| . | 194 210] . |226e} . [242 ¢ a leo] © |tel 4 Teel © Jee] 9910 2 x | 195 2] =. l|2a7] . | 243 £ A lcs| © |bal 4 |es| © |e3] 0011 3 IND w/t TOT A LT EPT O OLR] a [PL 6 12) o100 4 165 181 197 a 213 229 - 245 NEL ¥ A les} © its! 4 |es| © |fs] 9101 5 SSA | ‘| SPA |] | |S] 6 ey wm Pl 6 1S) 0110 6 135 151 167), | 183 199 215 231], (| 267 ESA | 97] EPA) o7} § | a7 B7] & |c7| X |b7]| & Jer] ~*~ |'er] 9111 ? 136 152 ” 168 184 > 200 216 x 232 248 HTS | 3 98 as} -> |pej © jce] 2 ibe] © jes] 2 |re] 199° 8 201) . |2i7] . less] . | 249 E co u |tol © |e u | ‘ko 1001 9 a 202 , 218 a 2H - 250 6 CA G DA é EA u FA 1010 A 155 171 187} . [203] . Jato] . |ass} . | 251 CSI }op} “« las] * jee] © |ca| | jos] © jes] © |rey} 1911 B 156 172 188 + 204 - 220 + 236 - 252 ST oc = AC Va BC i cc U DC i EC a FC 1100 Cc RI |p wey me TT a lS ii 1104 D 143 150] _ |a7s| . Jaot| , 207 223) , | 239 SS3 | ap | APC | oF aFi| & |eel ? |cel ® jor] * |e taitd F C1 Codes, pr-al} GR Codes
(DEC Supplemental Graphics)
Legend: foclmal ma code recognized by the wireless station [ [] code not yet standardized by
ANSI and ignored by the fecal nal code ignored by the wireless station wireless station
8-8 VT220/ANSI Terminal E mulation Programmer's Reference Guide
Page 145
SECTION 8
"
Programming
Table 8-4 C1 Control Characters and Wireless Station Action Mnemonic Hex Name
Wireless Station Action
80
Ignores this code.
81
Ignores this code.
82
Ignores this code.
83
Ignores this code.
IND
84
Index
Moves cursor down one line in same column. If cursor is at bottom margin, display performs a scroll up. Moves cursor to first position on next line. If cursor is at bottom margin, display performs a scroll up.
NEL
85
Next line
SSA
86
Start of selected area
ESA
87
End of selected area
HTS
88
Horizontal tab set
HTJ
89
Horizontal tab with justify
Ignores this code.
VTS
8A
Vertical tabulation set
Ignores this code.
PLD
8B
Partial line down
Ignores this code.
PLU
8C
Partial line up
Ignores this code.
RI
8D
Reverse index
Moves cursor up one line in same column. If cursor is at top margin, display performs a scroll down.
SS2
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.
Selects which characters on the current page the wireless station can send to the host. Ends the selected area that is sent to the host when forms are created for VT330/VT340 terminal emulation. Sets one horizontal tab stop at the column where the cursor is.
VT220/ANSI Terminal Emulation Programmer’s Reference Guide
8-9
Page 146
SECTION 8
"
Programming
Table 8-4 (Continued) C1 Control Characters and Wireless Station Action Mnemonic Hex Name
Wireless Station Action
SS3
8F
Single shift 3
Temporarily invokes G3 character set into GL for the next graphic character. G3 is designated by a select character set (SCS) sequence.
DCS
90
Device control string
Processes as opening delimiter of a device control string for device control use.
PU1
91
Private use 1
Ignores this code.
PU2
92
Private use 2
Ignores this code.
STS
93
Set transmit state
Ignores this code.
CCH
94
Cancel character
Ignores this code.
MW
95
Message waiting
Ignores this code.
SPA
96
Start of protected area
EPA
97
End of protected area
98
Starts the protected area in page memory that cannot be edited when forms are created from the host. Ends the protected area in page memory that cannot be edited when forms are created from the host. Ignores this code.
99
Ignores this code.
9A
Ignores this code.
CSI
9B
Control sequence introducer
Processes as control sequence introducer.
ST
9C
String terminator
Processes as the closing delimiter of a string opened by DCS. Also, processes the code as the end of a line of extended command characters.
OSC
9D
Operating system command
Ignores this code.
PM
9E
Privacy message
Ignores this code.
APC
9F
Application program command
Processes the code as the start of a line of extended command characters.
8-10
VT220/ANSI Terminal Emulation Programmer’s Reference Guide