DECKPM—Key Position Mode

This control function selects whether the keyboard sends character codes or key position reports to the host. DECKPM lets new applications take full control of the keyboard including single shifts, locking shifts, and compose character processing.

Default: Send character codes

Format

CSI
9/11
?
3/15
8
3/8
1
3/1
h
6/8
Set: send key position reports.
CSI
9/11
?
3/15
8
3/8
1
3/1
l
6/12
Reset: send character codes.

Description

If the DECKPM function is set, then all keyboard keys send extended reports that include the key position and the state of modifier keys when pressed. A modifier key is pressed in combination with another key to modify the code sent by that key. The Ctrl key is a modifier key.

If the DECKPM function is reset, then the keyboard keys send character codes.

Note on DECKPM

DECKPM only affects keyboard input; it does not affect how the terminal interprets data from the host.