Crate termcolor

Crate termcolor 

Source
Expand description

Termcolor crate for cross-platform colored terminal output

Re-exports§

pub use ansi::AnsiColor;
pub use ansi::ansi_color;
pub use ansi::ansi_color_only;
pub use ansi::ansi_spec;

Modules§

ansi
ANSI escape sequence functionality for terminal color output.

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
A standard stream for writing to stdout or stderr.
StandardStreamLock
StandardStreamLock is a locked reference to a StandardStream.
StringWriter
A wrapper for String that implements both Write and WriteColor.
TermString
A String wrapper that implements both io::Write and WriteColor.

Enums§

Color
The set of available colors for the terminal foreground/background.
ColorChoice
ColorChoice represents the color preferences of an end user.
ColorSpecParseError
An error from parsing an invalid color specification.

Traits§

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