VT codes sent by numeric keypad keys

Numeric keypad mode setting (DECNKM), ANSI mode.

Key Numeric Application
0 0 SS3 p
1 1 SS3 q
2 2 SS3 r
3 3 SS3 s
4 4 SS3 t
5 5 SS3 u
6 6 SS3 v
7 7 SS3 w
8 8 SS3 x
9 9 SS3 y
- (minus) SS3 m
, (comma) SS3 l
. (period) SS3 n
ENTER CR or CR LF (see below) SS3 M
PF1 SS3 P SS3 P
PF2 SS3 Q SS3 Q
PF3 SS3 R SS3 R
PF4 SS3 S SS3 S

In keypad numeric mode, ENTER sends the same codes as RETURN. You can use line feed/new line mode (LNM) to change the code sent by RETURN. When LNM is reset, pressing RETURN sends one control character (CR). When LNM is set, pressing RETURN sends two control characters (CR, LF).