Expand description
An abstraction over a terminal device
Re-exports§
pub use self::unix::UnixTerminal;
pub use self::unix::UnixTerminalWaker as TerminalWaker;
Modules§
- A Terminal buffered with a Surface
Structs§
- Represents the size of the terminal screen. The number of rows and columns of character cells are expressed. Some implementations populate the size of those cells in pixels.
Enums§
Traits§
Terminal
abstracts over some basic terminal capabilities. If theset_raw_mode
orset_cooked_mode
functions are used in any combination, the implementation is required to restore the terminal mode that was in effect when it was created.
Functions§
- Construct a new instance of Terminal. The terminal will have a renderer that is influenced by the configuration in the provided
Capabilities
instance. The terminal will explicitly open/dev/tty
on Unix systems andCONIN$
andCONOUT$
on Windows systems, so that it should yield a functioning console with minimal headaches. If you have a more advanced use case you will want to look to the constructors forUnixTerminal
andWindowsTerminal
and call whichever one is most suitable for your needs.
Type Aliases§
SystemTerminal
is a concrete implementation ofTerminal
. Ideally you wouldn’t referenceSystemTerminal
in consuming code. This type is exposed for convenience if you are doing something unusual and want easier access to the constructors.