[][src]Trait crossterm::Command

pub trait Command {
    pub fn write_ansi(&self, f: &mut impl Write) -> Result;
}

An interface for a command that performs an action on the terminal.

Crossterm provides a set of commands, and there is no immediate reason to implement a command yourself. In order to understand how to use and execute commands, it is recommended that you take a look at Command Api chapter.

Required methods

pub fn write_ansi(&self, f: &mut impl Write) -> Result[src]

Write an ANSI representation of this commmand to the given writer. An ANSI code can manipulate the terminal by writing it to the terminal buffer. However, only Windows 10 and UNIX systems support this.

This method does not need to be accessed manually, as it is used by the crossterm's Command Api

Loading content...

Implementations on Foreign Types

impl<T: Command + ?Sized> Command for &T[src]

Loading content...

Implementors

impl Command for DisableBlinking[src]

impl Command for EnableBlinking[src]

impl Command for Hide[src]

impl Command for MoveDown[src]

impl Command for MoveLeft[src]

impl Command for MoveRight[src]

impl Command for MoveTo[src]

impl Command for MoveToColumn[src]

impl Command for MoveToNextLine[src]

impl Command for MoveToPreviousLine[src]

impl Command for MoveUp[src]

impl Command for RestorePosition[src]

impl Command for SavePosition[src]

impl Command for Show[src]

impl Command for DisableMouseCapture[src]

impl Command for EnableMouseCapture[src]

impl Command for ResetColor[src]

impl Command for SetAttribute[src]

impl Command for SetAttributes[src]

impl Command for SetBackgroundColor[src]

impl Command for SetColors[src]

impl Command for SetForegroundColor[src]

impl Command for Clear[src]

impl Command for DisableLineWrap[src]

impl Command for EnableLineWrap[src]

impl Command for EnterAlternateScreen[src]

impl Command for LeaveAlternateScreen[src]

impl Command for ScrollDown[src]

impl Command for ScrollUp[src]

impl Command for SetSize[src]

impl<'a> Command for SetTitle<'a>[src]

impl<D: Display> Command for PrintStyledContent<D>[src]

impl<T: Display> Command for Print<T>[src]

Loading content...