Skip to main content

Crate hexga_ansi_color

Crate hexga_ansi_color 

Source
Expand description

A minimal package for printing some Ansi Color

Provides optional support for Serde (serialization / deserialization) when the “serde” feature is enabled.

use hexga_ansi_color::*;

println!("{}I'm green{}", AnsiColor::GREEN, AnsiColor::RESET);
println!("{}I'm red{}", AnsiColor::new_foreground(AnsiColorKind::Red), AnsiColor::RESET);
println!("{}White on magenta background{}", AnsiColor::new(AnsiColorKind::Magenta, AnsiColorLayer::Background), AnsiColor::RESET);

Based on previous crate minimal_ansi_color, but integrated to hexga.

Structs§

AnsiColor
TerminalColor

Enums§

AnsiColorKind
AnsiColorLayer

Type Aliases§

AnsiColorStr