[−][src]Struct rustc_term::terminfo::TerminfoTerminal
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>
[src]
ⓘImportant traits for TerminfoTerminal<T>pub fn new_with_terminfo(out: T, terminfo: TermInfo) -> TerminfoTerminal<T>
[src]
ⓘImportant traits for TerminfoTerminal<T>
Creates a new TerminfoTerminal with the given TermInfo and Write.
pub fn new(out: T) -> Option<TerminfoTerminal<T>>
[src]
Creates a new TerminfoTerminal for the current environment with the given Write.
Returns None
when the terminfo cannot be found or parsed.
Trait Implementations
impl<T: Write + Send> Terminal for TerminfoTerminal<T>
[src]
type Output = T
The terminal's output writer type.
fn fg(&mut self, color: Color) -> Result<bool>
[src]
fn bg(&mut self, color: Color) -> Result<bool>
[src]
fn attr(&mut self, attr: Attr) -> Result<bool>
[src]
fn supports_attr(&self, attr: Attr) -> bool
[src]
fn reset(&mut self) -> Result<bool>
[src]
fn get_ref(&self) -> &T
[src]
fn get_mut(&mut self) -> &mut T
[src]
fn into_inner(self) -> T where
Self: Sized,
[src]
Self: Sized,
impl<T: Write> Write for TerminfoTerminal<T>
[src]
fn write(&mut self, buf: &[u8]) -> Result<usize>
[src]
fn flush(&mut self) -> Result<()>
[src]
fn write_vectored(&mut self, bufs: &[IoVec]) -> Result<usize, Error>
[src]
🔬 This is a nightly-only experimental API. (
iovec
)Like write
, except that it writes from a slice of buffers. Read more
fn write_all(&mut self, buf: &[u8]) -> Result<(), Error>
1.0.0[src]
Attempts to write an entire buffer into this writer. Read more
fn write_fmt(&mut self, fmt: Arguments) -> Result<(), Error>
1.0.0[src]
Writes a formatted string into this writer, returning any error encountered. Read more
fn by_ref(&mut self) -> &mut Self
1.0.0[src]
Creates a "by reference" adaptor for this instance of Write
. Read more
Auto Trait Implementations
impl<T> Send for TerminfoTerminal<T> where
T: Send,
T: Send,
impl<T> Sync for TerminfoTerminal<T> where
T: Sync,
T: Sync,
Blanket Implementations
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From for T
[src]
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,