Struct text_terminal::ModeSwitch
source · 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
impl ModeSwitch
sourcepub const DisplayControlChars: u8 = 51u8
pub const DisplayControlChars: u8 = 51u8
(DECCRM) Display control characters. This is off by default.
sourcepub const InsertMode: u8 = 52u8
pub const InsertMode: u8 = 52u8
(DECIM) Set insert mode. This is off by default, meaning the terminal is in replace mode.
sourcepub const AutomaticCarriageReturn: &'static [u8; 2] = b"20"
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.
sourcepub const SET_SUFFIX: u8 = 104u8
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.
sourcepub const RESET_SUFFIX: u8 = 108u8
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§
impl RefUnwindSafe for ModeSwitch
impl Send for ModeSwitch
impl Sync for ModeSwitch
impl Unpin for ModeSwitch
impl UnwindSafe for ModeSwitch
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