Skip to main content

Module xterm

Module xterm 

Source
Expand description

Key-modifier option controls.

§Category

This module emits CSI m private controls for modifying or querying keyboard modifier reporting resources, including the common modifyOtherKeys resource.

§CSI format

Set/reset uses ESC [ > resource [;value] m; query uses ESC [ ? resource m. The fixed constants cover resource 4 with values 1, 2, reset, and query.

§Mode interaction

These controls manage keyboard-reporting behavior independently from the progressive keyboard enhancement stack in crate::ansi::kitty.

Constants§

QUERY_MODIFY_OTHER_KEYS
Query modifyOtherKeys resource 4: exact bytes ESC [ ? 4 m (b"\x1b[?4m").
RESET_MODIFY_OTHER_KEYS
Reset modifyOtherKeys resource 4: exact bytes ESC [ > 4 m (b"\x1b[>4m").
SET_MODIFY_OTHER_KEYS_1
Enable modifyOtherKeys resource 4 at value 1: exact bytes ESC [ > 4 ; 1 m (b"\x1b[>4;1m").
SET_MODIFY_OTHER_KEYS_2
Enable modifyOtherKeys resource 4 at value 2: exact bytes ESC [ > 4 ; 2 m (b"\x1b[>4;2m").

Functions§

write_query_key_modifier_options
Query a key-modifier resource with ESC [ ? <resource> m.
write_set_key_modifier_options
Set or reset a key-modifier resource with ESC [ > <resource> [;<value>] m.