#[derive(Clone)]
pub enum AnsiColor {
Black,
Red,
Green,
Yellow,
Blue,
Magenta,
Cyan,
White,
}
impl AnsiColor {
pub const fn code(&self) -> &'static str {
match self {
AnsiColor::Black => "30",
AnsiColor::Red => "31",
AnsiColor::Green => "32",
AnsiColor::Yellow => "33",
AnsiColor::Blue => "34",
AnsiColor::Magenta => "35",
AnsiColor::Cyan => "36",
AnsiColor::White => "37",
}
}
}