Enum term_model::ansi::Mode
source · pub enum Mode {
Show 17 variants
CursorKeys = 1,
DECCOLM = 3,
Insert = 4,
Origin = 6,
LineWrap = 7,
BlinkingCursor = 12,
LineFeedNewLine = 20,
ShowCursor = 25,
ReportMouseClicks = 1_000,
ReportCellMouseMotion = 1_002,
ReportAllMouseMotion = 1_003,
ReportFocusInOut = 1_004,
Utf8Mouse = 1_005,
SgrMouse = 1_006,
AlternateScroll = 1_007,
SwapScreenAndSetRestoreCursor = 1_049,
BracketedPaste = 2_004,
}
Expand description
Terminal modes
Variants§
CursorKeys = 1
?1
DECCOLM = 3
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 = 4
IRM Insert Mode
NB should be part of non-private mode enum
CSI 4 h
change to insert modeCSI 4 l
reset to replacement mode
Origin = 6
?6
LineWrap = 7
?7
BlinkingCursor = 12
?12
LineFeedNewLine = 20
20
NB This is actually a private mode. We should consider adding a second enumeration for public/private modesets.
ShowCursor = 25
?25
ReportMouseClicks = 1_000
?1000
ReportCellMouseMotion = 1_002
?1002
ReportAllMouseMotion = 1_003
?1003
ReportFocusInOut = 1_004
?1004
Utf8Mouse = 1_005
?1005
SgrMouse = 1_006
?1006
AlternateScroll = 1_007
?1007
SwapScreenAndSetRestoreCursor = 1_049
?1049
BracketedPaste = 2_004
?2004
Implementations§
Trait Implementations§
source§impl PartialEq for Mode
impl PartialEq for Mode
impl Eq for Mode
impl StructuralPartialEq for Mode
Auto Trait Implementations§
impl Freeze for Mode
impl RefUnwindSafe for Mode
impl Send for Mode
impl Sync for Mode
impl Unpin for Mode
impl UnwindSafe for Mode
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