pub struct TerminalOutput {
pub is_in_raw_mode: bool,
// some fields omitted
}
Struct that is a handle to a terminal screen.
This handle could be used to write to the current screen
For UNIX and Windows 10 stdout()
will be used as handle. And for Windows systems, not supporting ANSI escape codes, will use WinApi's HANDLE
as handle.
Create a new screen write instance whereon screen related actions can be performed.
Write String to the current screen.
Flush the current screen.
Write &str to the current screen.
Write buffer to the screen
Create a screen with the given Stdout
Get the default handle to the current screen.
Write a buffer into this writer, returning how many bytes were written. Read more
Flush this output stream, ensuring that all intermediately buffered contents reach their destination. Read more
Attempts to write an entire buffer into this writer. Read more
Writes a formatted string into this writer, returning any error encountered. Read more
Creates a "by reference" adaptor for this instance of Write
. Read more
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
🔬 This is a nightly-only experimental API. (get_type_id
)
this method will likely be replaced by an associated static