[][src]Enum alacritty_terminal::ansi::Mode

pub enum Mode {
    CursorKeys,
    DECCOLM,
    Insert,
    Origin,
    LineWrap,
    BlinkingCursor,
    LineFeedNewLine,
    ShowCursor,
    ReportMouseClicks,
    ReportCellMouseMotion,
    ReportAllMouseMotion,
    ReportFocusInOut,
    Utf8Mouse,
    SgrMouse,
    AlternateScroll,
    SwapScreenAndSetRestoreCursor,
    BracketedPaste,
}

Terminal modes.

Variants

CursorKeys

?1

DECCOLM

Select 80 or 132 columns per page.

CSI ? 3 h -> set 132 column font. CSI ? 3 l -> reset 80 column font.

Additionally,

  • set margins to default positions
  • erases all data in page memory
  • resets DECLRMM to unavailable
  • clears data from the status line (if set to host-writable)
Insert

IRM Insert Mode.

NB should be part of non-private mode enum.

  • CSI 4 h change to insert mode
  • CSI 4 l reset to replacement mode
Origin

?6

LineWrap

?7

BlinkingCursor

?12

LineFeedNewLine

20

NB This is actually a private mode. We should consider adding a second enumeration for public/private modesets.

ShowCursor

?25

ReportMouseClicks

?1000

ReportCellMouseMotion

?1002

ReportAllMouseMotion

?1003

ReportFocusInOut

?1004

Utf8Mouse

?1005

SgrMouse

?1006

AlternateScroll

?1007

SwapScreenAndSetRestoreCursor

?1049

BracketedPaste

?2004

Implementations

impl Mode[src]

pub fn from_primitive(intermediate: Option<&u8>, num: i64) -> Option<Mode>[src]

Create mode from a primitive.

TODO lots of unhandled values.

Trait Implementations

impl Debug for Mode[src]

impl Eq for Mode[src]

impl PartialEq<Mode> for Mode[src]

impl StructuralEq for Mode[src]

impl StructuralPartialEq for Mode[src]

Auto Trait Implementations

impl RefUnwindSafe for Mode

impl Send for Mode

impl Sync for Mode

impl Unpin for Mode

impl UnwindSafe for Mode

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.