[][src]Enum terminal::Action

pub enum Action {
    MoveCursorTo(u16u16),
    HideCursor,
    ShowCursor,
    EnableBlinking,
    DisableBlinking,
    ClearTerminal(Clear),
    SetTerminalSize(u16u16),
    ScrollUp(u16),
    ScrollDown(u16),
    EnableRawMode,
    DisableRawMode,
    EnterAlternateScreen,
    LeaveAlternateScreen,
    EnableMouseCapture,
    DisableMouseCapture,
    SetForegroundColor(Color),
    SetBackgroundColor(Color),
    SetAttribute(Attribute),
    ResetColor,
}

An action that can be performed on the terminal.

To perform an Action use Terminal::act.

Variants

MoveCursorTo(u16u16)

Moves the terminal cursor to the given position (column, row).

HideCursor

Hides the terminal cursor.

ShowCursor

Shows the terminal cursor.

EnableBlinking

Enables blinking of the terminal cursor.

DisableBlinking

Disables blinking of the terminal cursor.

ClearTerminal(Clear)

Clears the terminal screen buffer.

SetTerminalSize(u16u16)

Sets the terminal size (columns, rows).

ScrollUp(u16)

Scrolls the terminal screen a given number of rows up.

ScrollDown(u16)

Scrolls the terminal screen a given number of rows down.

EnableRawMode

Enables raw mode.

DisableRawMode

Disables raw mode.

EnterAlternateScreen

Switches to alternate screen.

LeaveAlternateScreen

Switches back to the main screen.

EnableMouseCapture

Enables mouse event capturing.

DisableMouseCapture

Disables mouse event capturing.

SetForegroundColor(Color)

Sets the the foreground color.

SetBackgroundColor(Color)

Sets the the background color.

SetAttribute(Attribute)

Sets an attribute.

ResetColor

Resets the colors back to default.

Trait Implementations

impl Clone for Action[src]

impl Copy for Action[src]

impl Debug for Action[src]

impl Eq for Action[src]

impl From<Action> for String[src]

impl Hash for Action[src]

impl Ord for Action[src]

impl PartialEq<Action> for Action[src]

impl PartialOrd<Action> for Action[src]

impl StructuralEq for Action[src]

impl StructuralPartialEq for Action[src]

Auto Trait Implementations

impl RefUnwindSafe for Action

impl Send for Action

impl Sync for Action

impl Unpin for Action

impl UnwindSafe for Action

Blanket Implementations

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

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

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

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

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, 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.