DecPrivateModeCode

Enum DecPrivateModeCode 

Source
pub enum DecPrivateModeCode {
Show 36 variants ApplicationCursorKeys = 1, DecAnsiMode = 2, Select132Columns = 3, SmoothScroll = 4, ReverseVideo = 5, OriginMode = 6, AutoWrap = 7, AutoRepeat = 8, StartBlinkingCursor = 12, ShowCursor = 25, ReverseWraparound = 45, LeftRightMarginMode = 69, SixelDisplayMode = 80, MouseTracking = 1_000, HighlightMouseTracking = 1_001, ButtonEventMouse = 1_002, AnyEventMouse = 1_003, FocusTracking = 1_004, Utf8Mouse = 1_005, SGRMouse = 1_006, RXVTMouse = 1_015, SGRPixelsMouse = 1_016, XTermMetaSendsEscape = 1_036, XTermAltSendsEscape = 1_039, SaveCursor = 1_048, ClearAndEnableAlternateScreen = 1_049, EnableAlternateScreen = 47, OptEnableAlternateScreen = 1_047, BracketedPaste = 2_004, GraphemeClustering = 2_027, Theme = 2_031, UsePrivateColorRegistersForEachGraphic = 1_070, SynchronizedOutput = 2_026, MinTTYApplicationEscapeKeyMode = 7_727, SixelScrollsRight = 8_452, Win32InputMode = 9_001,
}

Variants§

§

ApplicationCursorKeys = 1

https://vt100.net/docs/vt510-rm/DECCKM.html This mode is only effective when the terminal is in keypad application mode (see DECKPAM) and the ANSI/VT52 mode (DECANM) is set (see DECANM). Under these conditions, if the cursor key mode is reset, the four cursor function keys will send ANSI cursor control commands. If cursor key mode is set, the four cursor function keys will send application functions.

§

DecAnsiMode = 2

§

Select132Columns = 3

§

SmoothScroll = 4

§

ReverseVideo = 5

§

OriginMode = 6

https://vt100.net/docs/vt510-rm/DECOM.html When OriginMode is enabled, cursor is constrained to the scroll region and its position is relative to the scroll region.

§

AutoWrap = 7

https://vt100.net/docs/vt510-rm/DECAWM.html When enabled, wrap to next line, Otherwise replace the last character

§

AutoRepeat = 8

§

StartBlinkingCursor = 12

§

ShowCursor = 25

§

ReverseWraparound = 45

§

LeftRightMarginMode = 69

§

SixelDisplayMode = 80

§

MouseTracking = 1_000

Enable mouse button press/release reporting

§

HighlightMouseTracking = 1_001

Warning: this requires a cooperative and timely response from the application otherwise the terminal can hang

§

ButtonEventMouse = 1_002

Enable mouse button press/release and drag reporting

§

AnyEventMouse = 1_003

Enable mouse motion, button press/release and drag reporting

§

FocusTracking = 1_004

Enable FocusIn/FocusOut events

§

Utf8Mouse = 1_005

§

SGRMouse = 1_006

Use extended coordinate system in mouse reporting. Does not enable mouse reporting itself, it just controls how reports will be encoded.

§

RXVTMouse = 1_015

§

SGRPixelsMouse = 1_016

Use pixels rather than text cells in mouse reporting. Does not enable mouse reporting itself, it just controls how reports will be encoded.

§

XTermMetaSendsEscape = 1_036

§

XTermAltSendsEscape = 1_039

§

SaveCursor = 1_048

Save cursor as in DECSC

§

ClearAndEnableAlternateScreen = 1_049

§

EnableAlternateScreen = 47

§

OptEnableAlternateScreen = 1_047

§

BracketedPaste = 2_004

§

GraphemeClustering = 2_027

§

Theme = 2_031

§

UsePrivateColorRegistersForEachGraphic = 1_070

Applies to sixel and regis modes

§

SynchronizedOutput = 2_026

§

MinTTYApplicationEscapeKeyMode = 7_727

§

SixelScrollsRight = 8_452

xterm: adjust cursor positioning after emitting sixel

§

Win32InputMode = 9_001

Trait Implementations§

Source§

impl Clone for DecPrivateModeCode

Source§

fn clone(&self) -> DecPrivateModeCode

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for DecPrivateModeCode

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl PartialEq for DecPrivateModeCode

Source§

fn eq(&self, other: &DecPrivateModeCode) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Copy for DecPrivateModeCode

Source§

impl Eq for DecPrivateModeCode

Source§

impl StructuralPartialEq for DecPrivateModeCode

Auto Trait Implementations§

Blanket Implementations§

Source§

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

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

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

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

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

Source§

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

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. 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 T
where 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> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

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

fn clone_into(&self, target: &mut T)

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

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

Source§

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 T
where U: TryFrom<T>,

Source§

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.