pub enum TermEvent {
Title(String),
Bell,
Cwd(String),
ColumnMode {
cols: usize,
},
ColorSchemeQuery,
}Expand description
A consumer-facing event emitted while parsing the VT stream.
Variants§
Title(String)
The window/icon title was set (OSC 0 or OSC 2).
Bell
The terminal bell rang (BEL, 0x07).
Cwd(String)
The working directory was reported (OSC 7), e.g. file://host/path.
ColumnMode
The app requested 80/132-column mode (DECCOLM ?3). justerm is
dimension-free, so this is a request — the consumer may honor it by
calling resize(cols, rows), or ignore it. cols is 80 or 132 (#82).
ColorSchemeQuery
The app queried the light/dark color scheme (DSR CSI ? 996 n). justerm
is theme-agnostic, so the consumer (which knows the scheme) answers by
calling Engine::report_color_scheme (#85).
Trait Implementations§
impl Eq for TermEvent
impl StructuralPartialEq for TermEvent
Auto Trait Implementations§
impl Freeze for TermEvent
impl RefUnwindSafe for TermEvent
impl Send for TermEvent
impl Sync for TermEvent
impl Unpin for TermEvent
impl UnsafeUnpin for TermEvent
impl UnwindSafe for TermEvent
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