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 (⇐, ⇓, ⇑, ⇒) 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.
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 | ⇓ | 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
- Shift is not distinguished for the editing and numeric keypad keys by default so it does not interfere with touch typing patterns. This means that shifted keys send the same DECFNK sequence as the unshifted keys.
- The cursor keys are not available unmodified since they send standard cursor key sequences, not DECFNK sequences.
- Ctrl with ⇑, ⇓, Next, and Prev are used for local panning by default.
- Top row function keys F1 through F5 are only available when they are not used for local terminal functions.
- Shifted top row function keys F6 through F20 are still reserved for user-defined key sequences. The DECFNK sequences become the factory default UDK sequences for shifted F6 through F20.