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
WriteColorusing standard ANSI escape sequences. - Buffer
- Write colored text to memory.
- Buffer
Writer - Writes colored buffers to stdout or stderr.
- Buffered
Standard Stream - Like
StandardStream, but does buffered writing. - Color
Choice Parse Error - An error that occurs when parsing a
ColorChoicefails. - Color
Spec - A color specification.
- Hyperlink
Spec - A hyperlink specification.
- NoColor
- Satisfies
WriteColorbut ignores all color options. - Parse
Color Error - An error from parsing an invalid color specification.
- Standard
Stream - A standard stream for writing to stdout or stderr.
- Standard
Stream Lock StandardStreamLockis a locked reference to aStandardStream.- String
Writer - A wrapper for String that implements both Write and WriteColor.
- Term
String - A String wrapper that implements both
io::WriteandWriteColor.
Enums§
- Color
- The set of available colors for the terminal foreground/background.
- Color
Choice - ColorChoice represents the color preferences of an end user.
- Color
Spec Parse Error - An error from parsing an invalid color specification.
Traits§
- Write
Color - This trait describes the behavior of writers that support colored output.