KetraTerm
API · DevelopmentAll versions

XtermKeyResource

Shared key-family IDs for xterm modifier and format set/reset/query controls. The command selects the operation; both families use the same resource IDs. Resource 5 is reserved for string actions and is excluded. See https://invisible-island.net/xterm/ctlseqs/ctlseqs.html.

Properties

Link copied to clipboard
const val CURSOR_KEYS: Int = 1

Cursor and editing keypad keys.

Link copied to clipboard
const val FUNCTION_KEYS: Int = 2

Numbered and miscellaneous function keys.

Link copied to clipboard
const val KEYBOARD: Int = 0

Modifier admission mask for legacy/VT220 keyboard profiles.

Link copied to clipboard
const val KEYPAD_KEYS: Int = 3

Numeric keypad keys.

Link copied to clipboard
const val MODIFIER_KEYS: Int = 6

Physical modifier keys, including left/right variants.

Link copied to clipboard
const val OTHER_KEYS: Int = 4

Ordinary keys, controlled by modifyOtherKeys and formatOtherKeys.

Link copied to clipboard
const val SPECIAL_KEYS: Int = 7

Remaining predefined keys such as Escape and Enter.

Functions

Link copied to clipboard
fun isSupported(resource: Int): Boolean

Whether this is a documented key resource; string-action resource 5 is excluded.

Link copied to clipboard
fun isValidFormatValue(resource: Int, value: Int): Boolean

Whether the resource and extended-report format (0 or 1) are supported.

Link copied to clipboard
fun isValidModifierValue(resource: Int, value: Int): Boolean

Whether a semantic resource value is implemented, including explicit disable (-1).