Struct term::terminfo::TerminfoTerminalUnstable [-] [+] [src]

pub struct TerminfoTerminal<T> {
    // some fields omitted
}

A Terminal that knows how many colors it supports, with a reference to its parsed Terminfo database record.

Methods

impl<T: Write + Send + 'static> TerminfoTerminal<T>

fn new(out: T) -> Option<Box<Terminal<T> + Send + 'static>>

Returns None whenever the terminal cannot be created for some reason.

Trait Implementations

impl<T: Write + Send + 'static> Terminal<T> for TerminfoTerminal<T>

fn fg(&mut self, color: Color) -> Result<bool>

fn bg(&mut self, color: Color) -> Result<bool>

fn attr(&mut self, attr: Attr) -> Result<bool>

fn supports_attr(&self, attr: Attr) -> bool

fn reset(&mut self) -> Result<()>

fn get_ref<'a>(&'a self) -> &'a T

fn get_mut<'a>(&'a mut self) -> &'a mut T

impl<T: Write + Send + 'static> UnwrappableTerminal<T> for TerminfoTerminal<T>

fn unwrap(self) -> T

impl<T: Write> Write for TerminfoTerminal<T>

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

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

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

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

fn by_ref(&mut self) -> &mut Self

fn broadcast<W>(self, other: W) -> Broadcast<Self, W> where W: Write