#[non_exhaustive]pub enum TermEv {
Submit(String),
Complete {
line: String,
caret: usize,
},
Help(String),
Interrupt,
Eof,
Chord(u32),
PagerQuit,
Resize(u16, u16),
Raw(Vec<u32>),
}Expand description
what ui.terminal reports
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Submit(String)
Enter: the line (already echoed after the prompt and kept in the history)
Complete
Tab: the input line and the caret (byte index); answer with complete_reply
Help(String)
TF_QHELP: ? was typed; the line up to the caret (echoed with the ?)
Interrupt
Ctrl+C without a selection (TF_CTRL_SHIFT6: also Ctrl+Shift+6)
Eof
Ctrl+D on an empty line
Chord(u32)
Ctrl+Z on an empty line, Ctrl+L: VK | MOD_* << 16
PagerQuit
the pager was quit (q, Esc, Ctrl+C)
Resize(u16, u16)
the character grid changed (also at the first layout): columns, rows
Raw(Vec<u32>)
TM_RAW: characters, and keys as TK_KEY | VK | MOD_* << 16; Enter 13, Tab 9, Backspace 127, Esc 27, Ctrl+letter 1..26
Trait Implementations§
impl StructuralPartialEq for TermEv
Auto Trait Implementations§
impl Forget for TermEv
impl Freeze for TermEv
impl RefUnwindSafe for TermEv
impl Send for TermEv
impl Sync for TermEv
impl Unpin for TermEv
impl UnsafeUnpin for TermEv
impl UnwindSafe for TermEv
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