reedline/terminal_extensions/
mod.rs

1pub(crate) mod bracketed_paste;
2pub(crate) mod kitty;
3
4/// Return if the terminal supports the kitty keyboard enhancement protocol
5///
6/// Read more: <https://sw.kovidgoyal.net/kitty/keyboard-protocol/>
7///
8/// SIDE EFFECT: Touches the terminal file descriptors
9pub fn kitty_protocol_available() -> bool {
10    crossterm::terminal::supports_keyboard_enhancement().unwrap_or_default()
11}