Trait stijl::CLIStream [] [src]

pub trait CLIStream: Stream {
    fn rewind_lines(&mut self, count: u16) -> Result<()>;
fn get_size(&self) -> WinSize; }

A Stream connected to a command-line interface.

Required Methods

"Rewind" the stream so that the last count lines can be overwritten.

Panics if the Stream is not connected to a command-line window, that is, if Stream::is_cli() would return false.

The size of the command-line window.

Panics if the Stream is not connected to a command-line window, that is, if Stream::is_cli() would return false.

Implementors