🔬This is a nightly-only experimental API. (
test
)Expand description
Terminal formatting module.
This module provides the Terminal
trait, which abstracts over an ANSI
Terminal to provide color printing, among other things. There are two
implementations, the TerminfoTerminal
, which uses control characters from
a terminfo database, and WinConsole
, which uses the Win32 Console
API.
Modules
- Terminal color definitions
- Terminfo database interface.
Traits
- TerminalExperimentalA terminal with similar capabilities to an ANSI Terminal (foreground/background colors etc).
Functions
- Returns a Terminal wrapping stdout, or None if a terminal couldn’t be opened.
Type Definitions
- Alias for stdout terminals.