VT100.net: Digital VT102 User Guide

Table 4-4 Keypad Codes
Key | ANSI Mode | VT52 Mode
--- | --- | ---
Numeric Keypad Mode | Application Keypad Mode | Numeric Keypad Mode | Application Keypad Mode
0 | 0 060 |
    ESC  O   p
    033 117 160
| 0 060 |
    ESC  ?   p
    033 077 160
1 | 1 061 |
    ESC  O   q
    033 117 161
| 1 061 |
    ESC  ?   q
    033 077 161
2 | 2 062 |
    ESC  O   r
    033 117 162
| 2 062 |
    ESC  ?   r
    033 077 162
3 | 3 063 |
    ESC  O   s
    033 117 163
| 3 063 |
    ESC  ?   s
    033 077 163
4 | 4 064 |
    ESC  O   t
    033 117 164
| 4 064 |
    ESC  ?   t
    033 077 164
5 | 5 065 |
    ESC  O   u
    033 117 165
| 5 065 |
    ESC  ?   u
    033 077 165
6 | 6 066 |
    ESC  O   v
    033 117 166
| 6 066 |
    ESC  ?   v
    033 077 166
7 | 7 067 |
    ESC  O   w
    033 117 167
| 7 067 |
    ESC  ?   w
    033 077 167
8 | 8 070 |
    ESC  O   x
    033 117 170
| 8 070 |
    ESC  ?   x
    033 077 170
9 | 9 071 |
    ESC  O   y
    033 117 171
| 9 071 |
    ESC  ?   y
    033 077 171
- | - (minus) 055 |
    ESC  O   m
    033 117 155
| - (minus) 055 |
    ESC  ?   m
    033 077 155*
, | , (comma) 054 |
    ESC  O   l
    033 117 154
| , (comma) 054 |
    ESC  ?   l
    033 077 154*
. | . (period) 056 |
    ESC  O   n
    033 117 156
| . (period) 056 |
    ESC  ?   n
    033 077 156
ENTER† | CR or CR LF 015 or 015 012 |
    ESC  O   M
    033 117 115
| CR or CR LF 015 or 015 012 |
    ESC  ?   M
    033 077 115
PF1 |
    ESC  O   P
    033 117 120
    ESC  O   P
    033 117 120
    ESC  P
    033 120
    ESC  P
    033 120
PF2 |
    ESC  O   Q
    033 117 121
    ESC  O   Q
    033 117 121
    ESC  Q
    033 121
    ESC  Q
    033 121
PF3 |
    ESC  O   R
    033 117 122
    ESC  O   R
    033 117 122
    ESC  R
    033 122
    ESC  R
    033 122
PF4 |
    ESC  O   S
    033 117 123
    ESC  O   S
    033 117 123
    ESC  S
    033 123
    ESC  S
    033 123
* These sequences are not generated by the VT52 terminal † In numeric keypad mode (application keypad mode off), you can change the ENTER character code with the linefeed/new line feature. When off, this feature causes ENTER to generate a single control character (CR, octal 015). When on, this feature causes ENTER to generate two characters (CR, octal 015 and LF, octal 012).