pub enum CSI {
Sgr(Sgr),
Cursor(Cursor),
Edit(Edit),
Mode(Mode),
Device(Box<Device>),
Mouse(MouseReport),
Window(Window),
Keyboard(Keyboard),
SelectCharacterPath(CharacterPath, i64),
Unspecified(Box<Unspecified>),
}
Variants
Sgr(Sgr)
SGR: Set Graphics Rendition. These values affect how the character is rendered.
Cursor(Cursor)
CSI codes that relate to the cursor
Edit(Edit)
Mode(Mode)
Device(Box<Device>)
Mouse(MouseReport)
Window(Window)
Keyboard(Keyboard)
SelectCharacterPath(CharacterPath, i64)
ECMA-48 SCP
Unspecified(Box<Unspecified>)
Unknown or unspecified; should be rare and is rather large, so it is boxed and kept outside of the enum body to help reduce space usage in the common cases.
Implementations
sourceimpl CSI
impl CSI
sourcepub fn parse<'a>(
params: &'a [CsiParam],
parameters_truncated: bool,
control: char
) -> impl Iterator<Item = CSI> + 'a
pub fn parse<'a>(
params: &'a [CsiParam],
parameters_truncated: bool,
control: char
) -> impl Iterator<Item = CSI> + 'a
Parse a CSI sequence.
Returns an iterator that yields individual CSI actions.
Why not a single? Because sequences like CSI [ 1 ; 3 m
embed two separate actions but are sent as a single unit.
If no semantic meaning is known for a subsequence, the remainder
of the sequence is returned wrapped in a CSI::Unspecified
container.
Trait Implementations
impl Eq for CSI
impl StructuralEq for CSI
impl StructuralPartialEq for CSI
Auto Trait Implementations
impl RefUnwindSafe for CSI
impl Send for CSI
impl Sync for CSI
impl Unpin for CSI
impl UnwindSafe for CSI
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more