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 bytesESC [ ? 4 m(b"\x1b[?4m"). - RESET_
MODIFY_ OTHER_ KEYS - Reset modifyOtherKeys resource
4: exact bytesESC [ > 4 m(b"\x1b[>4m"). - SET_
MODIFY_ OTHER_ KEYS_ 1 - Enable modifyOtherKeys resource
4at value1: exact bytesESC [ > 4 ; 1 m(b"\x1b[>4;1m"). - SET_
MODIFY_ OTHER_ KEYS_ 2 - Enable modifyOtherKeys resource
4at value2: exact bytesESC [ > 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.