pub enum Event {
KeyPress(Key),
KeyRepeat(Key),
KeyRelease(Key),
Resize {
height: u16,
width: u16,
},
Paste(String),
KeyboardEnhancementFlags(KeyboardEnhancementFlags),
Da1,
Decrpm {
mode: u16,
setting: ModeSetting,
},
ColorScheme(ColorScheme),
CursorPosition {
row: u16,
column: u16,
},
Unknown(Token),
}Variants§
KeyPress(Key)
KeyRepeat(Key)
KeyRelease(Key)
Resize
Paste(String)
Text pasted while bracketed paste is enabled, with any invalid UTF-8 replaced. Use a
Tokenizer to get the raw bytes instead, as they arrive.
KeyboardEnhancementFlags(KeyboardEnhancementFlags)
Kitty keyboard protocol progressive enhancement flags
https://sw.kovidgoyal.net/kitty/keyboard-protocol/#progressive-enhancement
Da1
Primary device attributes
Decrpm
Report mode
ColorScheme(ColorScheme)
Color scheme report, sent in response to a query or when the color scheme changes
CursorPosition
Cursor position report, sent in response to a query. The row and column start at 1.
Unknown(Token)
A sequence that isn’t recognized
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Event
impl RefUnwindSafe for Event
impl Send for Event
impl Sync for Event
impl Unpin for Event
impl UnsafeUnpin for Event
impl UnwindSafe for Event
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more