An abstraction over a terminal device
ScreenSize | 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.
|
Terminal | Terminal abstracts over some basic terminal capabilities.
If the set_raw_mode or set_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.
|
new_terminal | 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 and
CONIN$ and CONOUT$ 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 for UnixTerminal and WindowsTerminal and call whichever
one is most suitable for your needs.
|
SystemTerminal | SystemTerminal is a concrete implementation of Terminal .
Ideally you wouldn't reference SystemTerminal in consuming
code. This type is exposed for convenience if you are doing
something unusual and want easier access to the constructors.
|