/// A fucntion which will produce the ASCII escape code for a given Bg.
A fucntion which will produce the ASCII escape code for a given Bg.
A fucntion which will produce the ASCII escape code for a given Bg .
pub fn escape_code(&self) -> &'static str {
        match self {
            Self::Black          => "\x1b[1;40m",
            Self::Red            => "\x1b[1;41m",
            Self::Green          => "\x1b[1;42m",
            Self::Yellow         => "\x1b[1;43m",
            Self::Blue           => "\x1b[1;44m",
            Self::Magenta        => "\x1b[1;45m",
            Self::Cyan           => "\x1b[1;46m",
            Self::White          => "\x1b[1;47m",
            Self::BrightBlack    => "\x1b[1;100m",
            Self::BrightRed      => "\x1b[1;101m",
            Self::BrightGreen    => "\x1b[1;102m",
            Self::BrightYellow   => "\x1b[1;103m",
            Self::BrightBlue     => "\x1b[1;104m",
            Self::BrightMagenta  => "\x1b[1;105m",
            Self::BrightCyan     => "\x1b[1;106m",
            Self::BrightWhite    => "\x1b[1;107m",
            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 Bg.
A fucntion which will produce the ASCII escape code for a given Bg .
&self