Skip to main content

Module kitty

Module kitty 

Source
Expand description

Progressive keyboard enhancement protocol.

§Category

This module emits CSI u queries and setters for enhanced keyboard reporting: requesting active flags, setting/add/removing flags, and pushing/popping a keyboard flag stack.

§CSI format

The protocol uses private CSI prefixes before the final u:

ESC [ = flags ; mode u     set/add/remove flags
ESC [ > flags u            push stack frame
ESC [ < count u            pop stack frame(s)
ESC [ ? u                  query active flags

§Mode interaction

These controls manage their own keyboard-reporting state and are independent of modifyOtherKeys controls in crate::ansi::xterm.

Structs§

KittyKeyboardFlags
Bitflags for progressive keyboard reporting.

Enums§

KittyKeyboardMode
Operation mode used by write_set_kitty_keyboard for CSI = flags ; mode u.

Constants§

REQUEST_KITTY_KEYBOARD
Request active keyboard enhancement flags: exact bytes ESC [ ? u (b"\x1b[?u").

Functions§

write_pop_kitty_keyboard
Pop keyboard enhancement stack frames with ESC [ < <count> u.
write_push_kitty_keyboard
Push a keyboard enhancement stack frame with ESC [ > <flags> u.
write_request_kitty_keyboard
Write REQUEST_KITTY_KEYBOARD, the ESC [ ? u active-flag query.
write_set_kitty_keyboard
Set, add, or remove keyboard enhancement flags with ESC [ = <flags> ; <mode> u.