4#include <mutable/mutable-config.hpp>
12constexpr const char *
RESET =
"\033[0m";
14constexpr const char *
BOLD =
"\033[1m";
18constexpr const char *
ITALIC =
"\033[3m";
23constexpr const char *
BLINK =
"\033[5m";
29constexpr const char *
NORMAL =
"\033[22m";
39constexpr const char *
FG_RED =
"\033[31m";
45constexpr const char *
FG_BLUE =
"\033[34m";
49constexpr const char *
FG_CYAN =
"\033[36m";
55constexpr const char *
BG_RED =
"\033[41m";
61constexpr const char *
BG_BLUE =
"\033[44m";
65constexpr const char *
BG_CYAN =
"\033[46m";
83 return out <<
"\033[" << (c.
kind ? 48u : 38u) <<
";5;" << c.
color <<
"m";
constexpr const char * ITALIC
constexpr const char * DOUBLE_UNDERLINE
constexpr const char * FG_BLUE
constexpr const char * BOLD
constexpr const char * BG_BLUE
constexpr const char * BG_RED
constexpr const char * FG_YELLOW
constexpr const char * BG_CYAN
constexpr const char * FG_MAGENTA
constexpr const char * FG_BLACK
constexpr const char * BLINK
constexpr const char * BG_YELLOW
constexpr const char * REVERSE_OFF
constexpr const char * UNDERLINE
constexpr const char * HALF_BRIGHT
constexpr const char * RESET
constexpr const char * BG_BLACK
constexpr const char * NORMAL
constexpr const char * FG_WHITE
constexpr const char * BG_GREEN
constexpr const char * FG_CYAN
constexpr const char * REVERSE
constexpr const char * BLINK_OFF
constexpr const char * BG_WHITE
Color bg(unsigned color)
Create a background color to be printed in a terminal.
bool M_EXPORT has_color()
Returns true if the terminal is known to support colors, false otherwise.
constexpr const char * UNDERLINE_OFF
Color fg(unsigned color)
Create a foreground color to be printed in a terminal.
constexpr const char * BG_MAGENTA
constexpr const char * FG_GREEN
constexpr const char * BG_DEFAULT
constexpr const char * FG_RED
Wrapper class to ease the use of terminal colors (foreground and background).
friend std::ostream & operator<<(std::ostream &out, Color c)
Color(color_kind kind, unsigned color)
enum m::term::Color::color_kind kind