Enum term_painter::Color
[−]
[src]
pub enum Color {
NotSet,
Black,
Red,
Green,
Yellow,
Blue,
Magenta,
Cyan,
White,
BrightBlack,
BrightRed,
BrightGreen,
BrightYellow,
BrightBlue,
BrightMagenta,
BrightCyan,
BrightWhite,
}Lists all possible Colors. It implements ToStyle so it's possible to call
ToStyle's methods directly on a Color variant like:
println!("{}", Color::Red.bold().paint("Red and bold"));
Note: Using Color::NotSet will not reset the color to the default
terminal color.
Variants
NotSet | |
Black | |
Red | |
Green | |
Yellow | |
Blue | |
Magenta | |
Cyan | |
White | |
BrightBlack | |
BrightRed | |
BrightGreen | |
BrightYellow | |
BrightBlue | |
BrightMagenta | |
BrightCyan | |
BrightWhite |