DECFNK—Function Key

The DECFNK sequences encode the top row function keys, the six editing keypad keys, and the four cursor keys. The top row function keys, (F1 through F20), can be encoded unmodified or in combination with Shift, Ctrl, and Alt key combinations. The six editing keypad keys (Find, Insert Here, Remove, Select, Prev, Next), can be encoded unmodified or in combinations with the Ctrl and Alt keys. The four cursor keys (<, v, ^, >) can be encoded with the Alt key.

Format

CSI
9/11
Ps1
3/?
;
3/11
Ps2
3/?
~
7/14

Parameters

Ps1
indicates the function keystroke.

Ps2
indicates the modifier key state.

Description

All combinations of the listed modifiers are coded as shown in Table 5–5.

Table 5–5 DECFNK Modifiers
Ps1 Function Keystroke Modifiers Coded by Default
1 Find Unmodified, Control, Alt
2 Insert Here Unmodified, Control, Alt
3 Remove Unmodified, Control, Alt
4 Select Unmodified, Control, Alt
5 Prev Unmodified, Alt
6 Next Unmodified, Alt
7 < Alt
8 v Alt
9 ^ Alt
10 > Alt
11 F1 Unmodified, Shift, Control, Alt
12 F2 Unmodified, Shift, Control, Alt
13 F3 Unmodified, Shift, Control, Alt
14 F4 Unmodified, Shift, Control, Alt
15 F5 Unmodified, Shift, Control, Alt
17 F6 Unmodified, Shift, Control, Alt
18 F7 Unmodified, Shift, Control, Alt
19 F8 Unmodified, Shift, Control, Alt
20 F9 Unmodified, Shift, Control, Alt
21 F10 Unmodified, Shift, Control, Alt
23 F11 Unmodified, Shift, Control, Alt
24 F12 Unmodified, Shift, Control, Alt
25 F13 Unmodified, Shift, Control, Alt
26 F14 Unmodified, Shift, Control, Alt
28 Help Unmodified, Shift, Control, Alt
29 Do Unmodified, Shift, Control, Alt
31 F17 Unmodified, Shift, Control, Alt
32 F18 Unmodified, Shift, Control, Alt
33 F19 Unmodified, Shift, Control, Alt
34 F20 Unmodified, Shift, Control, Alt
Ps2 Modifiers in effect
0 or omitted none
1 none
2 Shift
3 Alt
4 Alt + Shift
5 Control
6 Control + Shift
7 Alt + Control
8 Alt + Control + Shift

Notes