Skip to main content

CsiCommand

Enum CsiCommand 

Source
pub enum CsiCommand {
Show 40 variants Ich, Cuu, Cud, Cuf, Cub, Cnl, Cpl, Hpa, Cup, Ed, El, Il, Dl, Dch, Su, SmGraphics, Sd, Ech, Cbt, Rep, Da, DaTwo, Vpa, Tbc, Sm, SmPrivate, Rm, RmPrivate, Sgr, Modset, Dsr, Modoff, DsrPrivate, QueryPrivate, Decscusr, Xda, Decstbm, Scp, Winops, Rcp,
}
Expand description

CSI command types (40 entries).

Variants§

§

Ich

ICH — Insert Character (@).

§

Cuu

CUU — Cursor Up (A).

§

Cud

CUD — Cursor Down (B).

§

Cuf

CUF — Cursor Forward (C).

§

Cub

CUB — Cursor Back (D).

§

Cnl

CNL — Cursor Next Line (E).

§

Cpl

CPL — Cursor Previous Line (F).

§

Hpa

HPA — Horizontal Position Absolute (G or `).

§

Cup

CUP — Cursor Position (H or f).

§

Ed

ED — Erase in Display (J).

§

El

EL — Erase in Line (K).

§

Il

IL — Insert Line (L).

§

Dl

DL — Delete Line (M).

§

Dch

DCH — Delete Character (P).

§

Su

SU — Scroll Up (S).

§

SmGraphics

SM_GRAPHICS — Set/query graphics mode (?S).

§

Sd

SD — Scroll Down (T).

§

Ech

ECH — Erase Character (X).

§

Cbt

CBT — Cursor Backward Tabulation (Z).

§

Rep

REP — Repeat preceding character (b).

§

Da

DA — Device Attributes primary (c).

§

DaTwo

DA_TWO — Device Attributes secondary (>c).

§

Vpa

VPA — Vertical Position Absolute (d).

§

Tbc

TBC — Tab Clear (g).

§

Sm

SM — Set Mode (h).

§

SmPrivate

SM_PRIVATE — Set Private Mode (?h).

§

Rm

RM — Reset Mode (l).

§

RmPrivate

RM_PRIVATE — Reset Private Mode (?l).

§

Sgr

SGR — Select Graphic Rendition (m).

§

Modset

MODSET — Set modifier key mode (>m).

§

Dsr

DSR — Device Status Report (n).

§

Modoff

MODOFF — Reset modifier key mode (>n).

§

DsrPrivate

DSR_PRIVATE — Private Device Status Report (?n).

§

QueryPrivate

QUERY_PRIVATE — DECRPM Query (?$p).

§

Decscusr

DECSCUSR — Set Cursor Style ( q).

§

Xda

XDA — Extended Device Attributes (>q).

§

Decstbm

DECSTBM — Set Top and Bottom Margins (r).

§

Scp

SCP — Save Cursor Position (s).

§

Winops

WINOPS — Window Operations (t).

§

Rcp

RCP — Restore Cursor Position (u).

Trait Implementations§

Source§

impl Clone for CsiCommand

Source§

fn clone(&self) -> CsiCommand

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

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

Performs copy-assignment from source. Read more
Source§

impl Debug for CsiCommand

Source§

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

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

impl PartialEq for CsiCommand

Source§

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

Tests for self and other values to be equal, and is used by ==.
1.0.0 (const: unstable) · 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 CsiCommand

Source§

impl Eq for CsiCommand

Source§

impl StructuralPartialEq for CsiCommand

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.