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.

Trait Implementations

impl Send for StdWriter

impl Sync for StdWriter

impl Writer for StdWriter

fn write_all(&mut self, buf: &[u8]) -> IoResult<()>

fn write(&mut self, buf: &[u8]) -> IoResult<()>

fn flush(&mut self) -> IoResult<()>

fn write_fmt(&mut self, fmt: Arguments) -> IoResult<()>

fn write_str(&mut self, s: &str) -> IoResult<()>

fn write_line(&mut self, s: &str) -> IoResult<()>

fn write_char(&mut self, c: char) -> IoResult<()>

fn write_int(&mut self, n: isize) -> IoResult<()>

fn write_uint(&mut self, n: usize) -> IoResult<()>

fn write_le_uint(&mut self, n: usize) -> IoResult<()>

fn write_le_int(&mut self, n: isize) -> IoResult<()>

fn write_be_uint(&mut self, n: usize) -> IoResult<()>

fn write_be_int(&mut self, n: isize) -> IoResult<()>

fn write_be_u64(&mut self, n: u64) -> IoResult<()>

fn write_be_u32(&mut self, n: u32) -> IoResult<()>

fn write_be_u16(&mut self, n: u16) -> IoResult<()>

fn write_be_i64(&mut self, n: i64) -> IoResult<()>

fn write_be_i32(&mut self, n: i32) -> IoResult<()>

fn write_be_i16(&mut self, n: i16) -> IoResult<()>

fn write_be_f64(&mut self, f: f64) -> IoResult<()>

fn write_be_f32(&mut self, f: f32) -> IoResult<()>

fn write_le_u64(&mut self, n: u64) -> IoResult<()>

fn write_le_u32(&mut self, n: u32) -> IoResult<()>

fn write_le_u16(&mut self, n: u16) -> IoResult<()>

fn write_le_i64(&mut self, n: i64) -> IoResult<()>

fn write_le_i32(&mut self, n: i32) -> IoResult<()>

fn write_le_i16(&mut self, n: i16) -> IoResult<()>

fn write_le_f64(&mut self, f: f64) -> IoResult<()>

fn write_le_f32(&mut self, f: f32) -> IoResult<()>

fn write_u8(&mut self, n: u8) -> IoResult<()>

fn write_i8(&mut self, n: i8) -> IoResult<()>