prettytty

Trait Command

Source
pub trait Command: Debug + Display { }
Expand description

A command for the terminal.

Commands provide instructions to the terminal and are communicated in-band by writing ANSI escape codes. Doing so is the responsibility of the core::fmt::Display implementation, whereas the core::fmt::Debug implementation should simply identify the command.

This trait is object-safe.

Implementations on Foreign Types§

Source§

impl<C: Command + ?Sized> Command for &C

A borrowed command is a command.

Source§

impl<C: Command + ?Sized> Command for Box<C>

A boxed command is a command.

Implementors§

Source§

impl Command for Format

Source§

impl Command for RequestColor

Source§

impl Command for SetCursor

Source§

impl Command for BeginBatch

Source§

impl Command for BeginPaste

Source§

impl Command for DisableReverseMode

Source§

impl Command for DynMoveDown

Source§

impl Command for DynMoveLeft

Source§

impl Command for DynMoveRight

Source§

impl Command for DynMoveTo

Source§

impl Command for DynMoveToColumn

Source§

impl Command for DynMoveToRow

Source§

impl Command for DynMoveUp

Source§

impl Command for DynScrollDown

Source§

impl Command for DynScrollUp

Source§

impl Command for DynSetBackground8

Source§

impl Command for DynSetBackground24

Source§

impl Command for DynSetForeground8

Source§

impl Command for DynSetForeground24

Source§

impl Command for DynSetScrollRegion

Source§

impl Command for DynSetWindowTitle

Source§

impl Command for EnableReverseMode

Source§

impl Command for EndBatch

Source§

impl Command for EndPaste

Source§

impl Command for EnterAlternateScreen

Source§

impl Command for EraseLine

Source§

impl Command for EraseRestOfLine

Source§

impl Command for EraseScreen

Source§

impl Command for ExitAlternateScreen

Source§

impl Command for HideCursor

Source§

impl Command for RequestActiveStyle

Source§

impl Command for RequestBatchMode

Source§

impl Command for RequestCursorPosition

Source§

impl Command for RequestScreenSize

Source§

impl Command for RequestTerminalId

Source§

impl Command for ResetScrollRegion

Source§

impl Command for ResetStyle

Source§

impl Command for RestoreCursorPosition

Source§

impl Command for RestoreWindowTitle

Source§

impl Command for SaveCursorPosition

Source§

impl Command for SaveWindowTitle

Source§

impl Command for SetDefaultBackground

Source§

impl Command for SetDefaultForeground

Source§

impl Command for ShowCursor

Source§

impl<const COLOR: u8> Command for SetBackground8<COLOR>

Source§

impl<const COLOR: u8> Command for SetForeground8<COLOR>

Source§

impl<const COLUMN: u16> Command for MoveToColumn<COLUMN>

Source§

impl<const COLUMNS: u16> Command for MoveLeft<COLUMNS>

Source§

impl<const COLUMNS: u16> Command for MoveRight<COLUMNS>

Source§

impl<const R: u8, const G: u8, const B: u8> Command for SetBackground24<R, G, B>

Source§

impl<const R: u8, const G: u8, const B: u8> Command for SetForeground24<R, G, B>

Source§

impl<const ROW: u16> Command for MoveToRow<ROW>

Source§

impl<const ROW: u16, const COLUMN: u16> Command for MoveTo<ROW, COLUMN>

Source§

impl<const ROWS: u16> Command for MoveDown<ROWS>

Source§

impl<const ROWS: u16> Command for MoveUp<ROWS>

Source§

impl<const ROWS: u16> Command for ScrollDown<ROWS>

Source§

impl<const ROWS: u16> Command for ScrollUp<ROWS>

Source§

impl<const TOP: u16, const BOTTOM: u16> Command for SetScrollRegion<TOP, BOTTOM>