pub enum CSI {
    Sgr(Sgr),
    Cursor(Cursor),
    Edit(Edit),
    Mode(Mode),
    Device(Box<Device>),
    Mouse(MouseReport),
    Window(Window),
    Keyboard(Keyboard),
    SelectCharacterPath(CharacterPathi64),
    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(CharacterPathi64)

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

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

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Formats the value using the given formatter. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Should always be Self

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

Uses borrowed data to replace owned data, usually by cloning. Read more

Converts the given value to a String. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.