23 namespace term_colors {
35 inline const std::string
empty() {
return ""; };
Terminal color escape sequences and enable/disable control.
void enable_colors()
Enable terminal color output.
void disable_colors()
Disable all terminal color output.
bool are_colors_enabled()
Query whether terminal color output is currently enabled.
const char * red()
Escape sequence to set red text color.
const char * green()
Escape sequence to set green text color.
const char * black()
Escape sequence to set black text color.
const char * white()
Escape sequence to set white text color.
const char * magenta()
Escape sequence to set magenta (pink) text color.
const char * cyan()
Escape sequence to set cyan text color.
const char * blue()
Escape sequence to set blue text color.
const char * yellow()
Escape sequence to set yellow text color.
const char * blink()
escape sequence to set blinking text formatting.
const char * reset()
escape sequence to reset the terminal text formatting.
const char * bold()
escape sequence to set bold text formatting.
const char * underline()
escape sequence to set underlined text formatting.
const char * faint()
escape sequence to set faint (dim) text formatting.
namespace for basic c++ utilities
const std::string reset()
Get the reset terminal escape char.
const std::string col8b_yellow()
Get the yellow terminal escape char.
const std::string col8b_white()
Get the white terminal escape char.
const std::string col8b_magenta()
Get the magenta (pink) terminal escape char.
const std::string empty()
Get the empty terminal escape.
const std::string blink()
Get the blink terminal escape char.
const std::string col8b_green()
Get the green terminal escape char.
const std::string col8b_blue()
Get the blue terminal escape char.
const std::string col8b_black()
Get the black terminal escape char.
const std::string underline()
Get the underline terminal escape char.
bool colors_enabled()
Are colors enabled.
void disable_colors()
Disable all colors.
void enable_colors()
Enable colors in logs.
const std::string col8b_cyan()
Get the cyan terminal escape char.
const std::string faint()
Get the faint terminal escape char.
const std::string bold()
Get the bold terminal escape char.
const std::string col8b_red()
Get the red terminal escape char.