reedline 0.47.0

A readline-like crate for CLI text input
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
pub(crate) mod bracketed_paste;
pub(crate) mod kitty;
pub mod semantic_prompt;

/// Return if the terminal supports the kitty keyboard enhancement protocol
///
/// Read more: <https://sw.kovidgoyal.net/kitty/keyboard-protocol/>
///
/// SIDE EFFECT: Touches the terminal file descriptors
pub fn kitty_protocol_available() -> bool {
    crossterm::terminal::supports_keyboard_enhancement().unwrap_or_default()
}