#![allow(dead_code)]
pub enum Col {
Green,
Red,
Yellow,
Blue,
Magenta,
Cyan,
White,
}
impl Col {
pub fn print_col(&self, text: &str) -> String {
match self {
Col::Green => format!("\x1b[32m{}\x1b[0m", text),
Col::Red => format!("\x1b[31m{}\x1b[0m", text),
Col::Yellow => format!("\x1b[33m{}\x1b[0m", text),
Col::Blue => format!("\x1b[34m{}\x1b[0m", text),
Col::Magenta => format!("\x1b[35m{}\x1b[0m", text),
Col::Cyan => format!("\x1b[36m{}\x1b[0m", text),
Col::White => format!("\x1b[37m{}\x1b[0m", text),
}
}
}