Struct term::terminfo::TerminfoTerminal
[−]
[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> TerminfoTerminal<T>
fn new_with_terminfo(out: T, terminfo: TermInfo) -> TerminfoTerminal<T>
Create a new TerminfoTerminal with the given TermInfo and Write.
fn new(out: T) -> Option<TerminfoTerminal<T>>
Create a new TerminfoTerminal for the current environment with the given Write.
Returns None
when the terminfo cannot be found or parsed.