pub enum InputState {
Show 17 variants
Ground,
EscEnter,
EscIntermediate,
CsiEnter,
CsiParameter,
CsiIntermediate,
CsiIgnore,
DcsEnter,
DcsParameter,
DcsIntermediate,
DcsHandler,
DcsEscape,
DcsIgnore,
OscString,
ApcString,
RenameString,
ConsumeSt,
}Expand description
The 17 parser states matching tmux exactly.
Variants§
Ground
Ground state — normal printable character processing.
EscEnter
ESC received, waiting for sequence identifier.
EscIntermediate
ESC intermediate character(s) collected.
CsiEnter
CSI (ESC [) received, waiting for parameters.
CsiParameter
CSI parameter bytes being collected.
CsiIntermediate
CSI intermediate character(s) collected.
CsiIgnore
CSI with invalid parameter — absorb until final byte.
DcsEnter
DCS (ESC P) received, waiting for parameters.
DcsParameter
DCS parameter bytes being collected.
DcsIntermediate
DCS intermediate character(s) collected.
DcsHandler
DCS passthrough data handler.
DcsEscape
ESC received inside DCS passthrough.
DcsIgnore
DCS with invalid parameter — absorb until ST.
OscString
OSC string being collected.
ApcString
APC string being collected.
RenameString
Screen rename (ESC k) string being collected.
ConsumeSt
Unknown ESC-initiated sequence — absorb until ST.
Trait Implementations§
Source§impl Clone for InputState
impl Clone for InputState
Source§fn clone(&self) -> InputState
fn clone(&self) -> InputState
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for InputState
impl Debug for InputState
Source§impl Hash for InputState
impl Hash for InputState
Source§impl PartialEq for InputState
impl PartialEq for InputState
Source§fn eq(&self, other: &InputState) -> bool
fn eq(&self, other: &InputState) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for InputState
impl Eq for InputState
impl StructuralPartialEq for InputState
Auto Trait Implementations§
impl Freeze for InputState
impl RefUnwindSafe for InputState
impl Send for InputState
impl Sync for InputState
impl Unpin for InputState
impl UnsafeUnpin for InputState
impl UnwindSafe for InputState
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