24 enum class Type : std::uint8_t
39 enum class Name : std::uint8_t
64 Color(
const std::uint8_t& color);
65 Color(
const std::uint8_t& red,
const std::uint8_t& green,
const std::uint8_t& blue);
70 std::array<std::uint8_t, 3>
to24bits()
const;
82std::string
color_bg(
const std::uint8_t& value);
83std::string
color_bg(
const std::uint8_t& red,
const std::uint8_t& green,
const std::uint8_t& blue);
84std::string
color_bg(
const Color& color);
87std::string
color_fg(
const std::uint8_t& value);
88std::string
color_fg(
const std::uint8_t& red,
const std::uint8_t& green,
const std::uint8_t& blue);
89std::string
color_fg(
const Color& color);
std::uint8_t to8bits() const
bool operator==(const Color &) const
std::array< std::uint8_t, 3 > to24bits() const
std::array< std::uint8_t, 3 > m_bit24
Name
The 3bit/4bit colors for the terminal.
@ Cyan
Cyan FG: 36, BG: 46.
@ White
White FG: 37, BG: 47.
@ BrightBlue
BrightBlue FG: 94, BG: 104.
@ BrightRed
BrightRed FG: 91, BG: 101.
@ BrightWhite
BrightWhite FG: 97, BG: 107.
@ BrightMagenta
BrightMagenta FG: 95, BG: 105.
@ Yellow
Yellow FG: 33, BG: 43.
@ Default
Use the default terminal color, FG: 39, BG: 49.
@ BrightYellow
BrightYellow FG: 93, BG: 103.
@ BrightBlack
BrightBlack FG: 90, BG: 100.
@ Blue
Blue FG: 34, BG: 44.
@ Gray
Gray FG: 90, BG: 100.
@ BrightGreen
BrightGreen FG: 92, BG: 102.
@ Magenta
Magenta FG: 35, BG: 45.
@ BrightCyan
BrightCyan FG: 96, BG: 106.
@ Green
Green FG: 32, BG: 42.
@ Black
Black FG: 30, BG: 40.
bool operator!=(const Color &) const
std::string color_bg(const Term::Color::Name &name)
std::string color_fg(const Term::Color::Name &name)