Struct std::old_io::stdio::StdWriterUnstable
[-] [+]
[src]
pub struct StdWriter { // some fields omitted }
Representation of a writer to a standard output stream
Methods
impl StdWriter
fn winsize(&mut self) -> IoResult<(isize, isize)>
Gets the size of this output window, if possible. This is typically used when the writer is attached to something like a terminal, this is used to fetch the dimensions of the terminal.
If successful, returns Ok((width, height))
.
Error
This function will return an error if the output stream is not actually connected to a TTY instance, or if querying the TTY instance fails.
fn set_raw(&mut self, raw: bool) -> IoResult<()>
Controls whether this output stream is a "raw stream" or simply a normal stream.
Error
This function will return an error if the output stream is not actually connected to a TTY instance, or if querying the TTY instance fails.
fn isatty(&self) -> bool
Returns whether this stream is attached to a TTY instance or not.