pub enum Action {
Show 19 variants
MoveCursorTo(u16, u16),
HideCursor,
ShowCursor,
EnableBlinking,
DisableBlinking,
ClearTerminal(Clear),
SetTerminalSize(u16, u16),
ScrollUp(u16),
ScrollDown(u16),
EnableRawMode,
DisableRawMode,
EnterAlternateScreen,
LeaveAlternateScreen,
EnableMouseCapture,
DisableMouseCapture,
SetForegroundColor(Color),
SetBackgroundColor(Color),
SetAttribute(Attribute),
ResetColor,
}
Expand description
An action that can be performed on the terminal.
To perform an Action use Terminal::act.
Variants§
MoveCursorTo(u16, u16)
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(u16, u16)
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§
Source§impl Ord for Action
impl Ord for Action
Source§impl PartialOrd for Action
impl PartialOrd for Action
impl Copy for Action
impl Eq for Action
impl StructuralPartialEq for Action
Auto Trait Implementations§
impl Freeze for Action
impl RefUnwindSafe for Action
impl Send for Action
impl Sync for Action
impl Unpin for Action
impl UnwindSafe for Action
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more