Module term

Source
๐Ÿ”ฌ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ยง

color ๐Ÿ”’ Experimental
Terminal color definitions
terminfo ๐Ÿ”’ Experimental
Terminfo database interface.

Traitsยง

Terminal ๐Ÿ”’ Experimental
A terminal with similar capabilities to an ANSI Terminal (foreground/background colors etc).

Functionsยง

stdout ๐Ÿ”’ Experimental
Returns a Terminal wrapping stdout, or None if a terminal couldnโ€™t be opened.

Type Aliasesยง

StdoutTerminal ๐Ÿ”’ Experimental
Alias for stdout terminals.