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
fn rewind_lines(&mut self, count: u16) -> Result<()>
"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.
fn get_size(&self) -> WinSize
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.
Implementations on Foreign Types
impl<'a> CLIStream for Box<CLIStream + 'a>
[src]
impl CLIStream for Box<LockableStream>
[src]
Implementors
impl CLIStream for TermStream<Stdout>
impl CLIStream for TermStream<Stderr>
impl<'a> CLIStream for TermStream<StdoutLock<'a>>
impl<'a> CLIStream for TermStream<StderrLock<'a>>