Expand description

User interface utilities (i.e. color)

Re-exports

pub use atty;
pub use termcolor;

Structs

A structure handling emitting messages to the terminal. This Derefs and DerefMuts to a termcolor::Buffer, so you can use termcolor::WriteColor and methods on Buffer to write custom text.

A helper struct containing the emitters for stdout and stderr.

Functions

Parse a color preference (always, ansi, auto, anything else: auto) to a color preference. Uses atty internally to test if the output stream is a TTY.