pub struct ModeSwitch;
Expand description

The set of “frequently-supported” commands to switch terminal modes.

These are sometimes referred to as “ECMA-48” modes or commands.

Implementations§

source§

impl ModeSwitch

source

pub const DisplayControlChars: u8 = 51u8

(DECCRM) Display control characters. This is off by default.

source

pub const InsertMode: u8 = 52u8

(DECIM) Set insert mode. This is off by default, meaning the terminal is in replace mode.

source

pub const AutomaticCarriageReturn: &'static [u8; 2] = b"20"

(LF/NL) Automatically follow a Line Feed (LF), Vertical Tab (VT), and Form Feed (FF) with a Carriage Return (CR). This is off by default.

source

pub const SET_SUFFIX: u8 = 104u8

If this value comes after one of the above command values, it means that the mode should be set, replacing the default value.

source

pub const RESET_SUFFIX: u8 = 108u8

If this value comes after one of the above command values, it means that the mode should be “unset” or “reset” to the default.

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

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

source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

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

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.