[][src]Enum tuikit::output::Command

pub enum Command {
    PutChar(char),
    Write(String),
    SetTitle(String),
    ClearTitle,
    Flush,
    EraseScreen,
    AlternateScreen(bool),
    MouseSupport(bool),
    EraseEndOfLine,
    EraseDown,
    ResetAttributes,
    Fg(Color),
    Bg(Color),
    Effect(Effect),
    SetAttribute(Attr),
    AutoWrap(bool),
    CursorGoto {
        row: usize,
        col: usize,
    },
    CursorUp(usize),
    CursorDown(usize),
    CursorLeft(usize),
    CursorRight(usize),
    CursorShow(bool),
    BracketedPaste(bool),
}

Instead of calling functions of Output, we could send commands.

Variants

PutChar(char)

Put a char to screen

Write(String)

Write content to screen (escape codes will be escaped)

SetTitle(String)

Set the title of the terminal

ClearTitle

Clear the title of the terminal

Flush

Flush all the buffered contents

EraseScreen

Erase the entire screen

AlternateScreen(bool)

Enter(true)/Quit(false) the alternate screen mode

MouseSupport(bool)

Enable(true)/Disable(false) mouse support

EraseEndOfLine

Erase contents to the end of current line

EraseDown

Erase contents till the bottom of the screen

ResetAttributes

Reset attributes

Fg(Color)

Set the foreground color

Bg(Color)

Set the background color

Effect(Effect)

Set the effect(e.g. underline, dim, bold, ...)

SetAttribute(Attr)

Set the fg, bg & effect.

AutoWrap(bool)

Enable(true)/Disable(false) autowrap

CursorGoto

move the cursor to (row, col)

Fields of CursorGoto

row: usizecol: usize
CursorUp(usize)

move cursor up x lines

CursorDown(usize)

move cursor down x lines

CursorLeft(usize)

move cursor left x characters

CursorRight(usize)

move cursor right x characters

CursorShow(bool)

Show(true)/Hide(false) cursor

BracketedPaste(bool)

Enable(true)/Disable(false) the bracketed paste mode

Trait Implementations

impl Clone for Command[src]

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

Performs copy-assignment from source. Read more

impl Debug for Command[src]

Auto Trait Implementations

impl Send for Command

impl Sync for Command

Blanket Implementations

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

type Owned = T

The resulting type after obtaining ownership.

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

impl<T> From<T> for T[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> BorrowMut<T> for T where
    T: ?Sized
[src]

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

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