Table 5-10 ANSI Keypad Codes
Key Numeric Keypad Mode Application Keypad Mode
0 0
060
ESC  O   p
033 117 160
1 1
061
ESC  O   q
033 117 161
2 2
062
ESC  O   r
033 117 162
3 3
063
ESC  O   s
033 117 163
4 4
064
ESC  O   t
033 117 164
5 5
065
ESC  O   u
033 117 165
6 6
066
ESC  O   v
033 117 166
7 7
067
ESC  O   w
033 117 167
8 8
070
ESC  O   x
033 117 170
9 9
071
ESC  O   y
033 117 171
- (minus) - (minus)
055
ESC  O   m
033 117 155
, (comma) , (comma)
054
ESC  O   l
033 117 154
. (period) . (period)
056
ESC  O   n
033 117 156
ENTER* CR or CR LF
015 or 015 012
ESC  O   M
033 117 115
PF1
ESC  O   P
033 117 120
ESC  O   P
033 117 120
PF2
ESC  O   Q
033 117 121
ESC  O   Q
033 117 121
PF3
ESC  O   R
033 117 122
ESC  O   R
033 117 122
PF4
ESC  O   S
033 117 123
ESC  O   S
033 117 123

NOTE: In ANSI mode, if the codes are echoed back to the terminal or if the terminal is off-line, the last character of the sequence appears on the screen; for example, PF4 appears as an "S".

* In numeric keypad mode, ENTER generates the same characters as RETURN. You can change the RETURN key character code with the line feed/new line feature. When off, this feature causes the key to generate a single control character (CR, octal 015). When on, this feature causes the key to generate two characters (CR, octal 015 and LF, octal 012).