Struct linefeed::writer::Writer
[−]
[src]
pub struct Writer<'a, Term: 'a + Terminal> { /* fields omitted */ }
Provides an interface to write line-by-line output to the terminal device.
Holds a lock on terminal write operations.
See Interface
for more information about concurrent operations.
An instance of this type can be constructed using the
Interface::lock_writer
method.
Methods
impl<'a, Term: Terminal> Writer<'a, Term>
[src]
ⓘImportant traits for HistoryIter<'a>pub fn history(&self) -> HistoryIter
[src]
ⓘImportant traits for HistoryIter<'a>
Returns an iterator over history entries.
pub fn write_str(&mut self, s: &str) -> Result<()>
[src]
Writes some text to the terminal device.
Before the Writer
is dropped, any output written should be followed
by a newline. A newline is automatically written if the writeln!
macro is used.
pub fn write_fmt(&mut self, args: Arguments) -> Result<()>
[src]
Writes formatted text to the terminal display.
This method enables Interface
to be used as the receiver to
the writeln!
macro.
If the text contains any unprintable characters (e.g. escape sequences), those characters will be escaped before printing.