[][src]Enum terminal_escapes::Sequence

pub enum Sequence<'a> {
    Reset,
    LineWrap(bool),
    FontDefault,
    FontAlternate,
    CursorAt(u32u32),
    CursorMove(i32i32),
    CursorSave,
    CursorRestore,
    CursorSaveAttributes,
    CursorRestoreAttributes,
    ScrollEnable(Option<(u32, u32)>),
    Scroll(i32),
    EraseEndOfLine,
    EraseStartOfLine,
    EraseLine,
    EraseDown,
    EraseUp,
    EraseScreen,
    SetAttributes(&'a [Attribute]),
}

Variants

Reset

Reset all terminal settings to default.

LineWrap(bool)

Enable/disable line wrapping.

FontDefault

Set default font.

FontAlternate

Set alternate font.

CursorAt(u32u32)

Set the cursor position (row, column).

CursorMove(i32i32)

Move the cursor position by the given delta (row, column).

(0, 0) is at the top left of the screen.

CursorSave

Save the cursor position.

CursorRestore

Resotre the saved cursor position.

CursorSaveAttributes

Save the cursor position and attributes.

CursorRestoreAttributes

Resotre the saved cursor position and attributes.

ScrollEnable(Option<(u32, u32)>)

Enable scrolling.

If None is passed then scrolling is enabled for the whole screen. If Some((start, end)) is passed then scrolling is enabled from row start to end.

Scroll(i32)

Scroll by the given number of rows. Positive rows means scrolling down, negative rows means scrolling up.

EraseEndOfLine

Erases from the current cursor position to the end of the current line.

EraseStartOfLine

Erases from the current cursor position to the start of the current line.

EraseLine

Erases the entire current line.

EraseDown

Erases the screen from the current line down to the bottom of the screen.

EraseUp

Erases the screen from the current line up to the top of the screen.

EraseScreen

Erases the screen with the background colour and moves the cursor to home.

SetAttributes(&'a [Attribute])

Sets display attributes.

Trait Implementations

impl<'a> Copy for Sequence<'a>[src]

impl<'a> Clone for Sequence<'a>[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl<'a> PartialEq<Sequence<'a>> for Sequence<'a>[src]

impl<'a> Eq for Sequence<'a>[src]

impl<'a> Display for Sequence<'a>[src]

Auto Trait Implementations

impl<'a> Sync for Sequence<'a>

impl<'a> Unpin for Sequence<'a>

impl<'a> Send for Sequence<'a>

impl<'a> UnwindSafe for Sequence<'a>

impl<'a> RefUnwindSafe for Sequence<'a>

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> From<T> for T[src]

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]