Module termcolor

Source
Expand description

Cross-platform library for writing colored output to the terminal.

See crate ::termcolor.

Structs§

Ansi
Satisfies WriteColor using standard ANSI escape sequences.
Buffer
Write colored text to memory.
BufferWriter
Writes colored buffers to stdout or stderr.
BufferedStandardStream
Like StandardStream, but does buffered writing.
ColorChoiceParseError
An error that occurs when parsing a ColorChoice fails.
ColorSpec
A color specification.
HyperlinkSpec
A hyperlink specification.
NoColor
Satisfies WriteColor but ignores all color options.
ParseColorError
An error from parsing an invalid color specification.
StandardStream
Satisfies io::Write and WriteColor, and supports optional coloring to either of the standard output streams, stdout and stderr.
StandardStreamLock
StandardStreamLock is a locked reference to a StandardStream.

Enums§

Color
The set of available colors for the terminal foreground/background.
ColorChoice
ColorChoice represents the color preferences of an end user.

Traits§

WriteColor
This trait describes the behavior of writers that support colored output.