Table 3-2 Codes Generated by Cursor Control Keys
ANSI Mode* VT52 Mode*
Key Cursor Key Mode Reset
Normal
Cursor Key Mode Set
(Application)
Normal Application
↑
9/11  4/1
CSI   A
8/15  4/1
SS3   A
1/11  4/1
ESC   A
1/11  4/1
ESC   A
↓
9/11  4/2
CSI   B
8/15  4/2
SS3   B
1/11  4/2
ESC   B
1/11  4/2
ESC   B
→
9/11  4/3
CSI   C
8/15  4/3
SS3   C
1/11  4/3
ESC   C
1/11  4/3
ESC   C
←
9/11  4/4
CSI   D
8/15  4/4
SS3   D
1/11  4/4
ESC   D
1/11  4/4
ESC   D
* ANSI mode applies to VT200 and VT100 modes. VT52 mode is an ANSI-incompatible mode.