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

* These sequences are not generated by the VT52.

† In numeric keypad mode (application keypad mode off), ENTER generates the same characters as RETURN. You can change the RETURN 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).