Skip to main content

key_to_ansi_with_mode

Function key_to_ansi_with_mode 

Source
pub fn key_to_ansi_with_mode(
    chord: &KeyChord,
    cursor_keys_application_mode: bool,
) -> Option<Vec<u8>>
Expand description

Lower-level encoder with explicit cursor-key mode. When cursor_keys_application_mode is true, bare arrow keys encode as ESC O <letter> (SS3) instead of ESC [ <letter> (CSI). The rest of the table is independent of the mode bit.