/// A fucntion which will produce the ASCII escape code for a given Fg.
A fucntion which will produce the ASCII escape code for a given Fg.
A fucntion which will produce the ASCII escape code for a given Fg .
pub fn escape_code(&self) -> &'static str {
        match self {
            Self::Black           => "\x1b[1;30m",
            Self::Red             => "\x1b[1;31m",
            Self::Green           => "\x1b[1;32m",
            Self::Yellow          => "\x1b[1;33m",
            Self::Blue            => "\x1b[1;34m",
            Self::Magenta         => "\x1b[1;35m",
            Self::Cyan            => "\x1b[1;36m",
            Self::White           => "\x1b[1;37m",
            Self::BrightBlack     => "\x1b[1;90m",
            Self::BrightRed       => "\x1b[1;91m",
            Self::BrightGreen     => "\x1b[1;92m",
            Self::BrightYellow    => "\x1b[1;93m",
            Self::BrightBlue      => "\x1b[1;94m",
            Self::BrightMagenta   => "\x1b[1;95m",
            Self::BrightCyan      => "\x1b[1;96m",
            Self::BrightWhite     => "\x1b[1;97m",
            Self::Reset           => "\x1b[1;0m",
        }
    }
pub fn escape_code ( & self ) -> & ' static str { match self { Self :: Black => " \x1b " , Self :: Red => " \x1b " , Self :: Green => " \x1b " , Self :: Yellow => " \x1b " , Self :: Blue => " \x1b " , Self :: Magenta => " \x1b " , Self :: Cyan => " \x1b " , Self :: White => " \x1b " , Self :: BrightBlack => " \x1b " , Self :: BrightRed => " \x1b " , Self :: BrightGreen => " \x1b " , Self :: BrightYellow => " \x1b " , Self :: BrightBlue => " \x1b " , Self :: BrightMagenta => " \x1b " , Self :: BrightCyan => " \x1b " , Self :: BrightWhite => " \x1b " , Self :: Reset => " \x1b " , } }
A fucntion which will produce the ASCII escape code for a given Fg.
A fucntion which will produce the ASCII escape code for a given Fg .
&self