[−][src]Trait crossterm::Command
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