pub trait Device: Write {
    fn get_terminal_size(&mut self) -> Result<Vector>;
    fn enable_raw_mode(&mut self) -> Result<()>;
    fn disable_raw_mode(&mut self) -> Result<()>;
}
Expand description

An output device to be controlled for displaying an interface.

Required Methods

Retrieve the device’s terminal viewport size.

Enable “raw mode” in the terminal.

Restore the configuration before the terminal was placed in “raw mode”.

Implementations on Foreign Types

Implementors