Expand description
Color managemement.
§Example
use termion::color;
fn main() {
println!("{}Red", color::Fg(color::Red));
println!("{}Blue", color::Fg(color::Blue));
println!("{}Back again", color::Fg(color::Reset));
}
Structs§
- Ansi
Value - An arbitrary ANSI color value.
- Bg
- A background color.
- Black
- Black.
- Blue
- Blue.
- Cyan
- Cyan.
- Fg
- A foreground color.
- Green
- Green.
- Light
Black - High-intensity light black.
- Light
Blue - High-intensity light blue.
- Light
Cyan - High-intensity light cyan.
- Light
Green - High-intensity light green.
- Light
Magenta - High-intensity light magenta.
- Light
Red - High-intensity light red.
- Light
White - High-intensity light white.
- Light
Yellow - High-intensity light yellow.
- Magenta
- Magenta.
- Red
- Red.
- Reset
- Reset colors to defaults.
- Rgb
- A truecolor RGB.
- White
- White.
- Yellow
- Yellow.
Traits§
- Color
- A terminal color.
- Detect
Colors - Types that allow detection of the colors they support.