27#define TERM_ESCAPTE_CHAR "\x1b["
75 return {
false,
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
""};
92 extern TermColors _int_term_colors;
96 namespace term_colors {
102 void disable_colors();
108 inline const std::string
empty() {
return ""; };
110 inline const std::string
reset() {
return details::_int_term_colors.reset; };
112 inline const std::string
bold() {
return details::_int_term_colors.bold; };
114 inline const std::string
faint() {
return details::_int_term_colors.faint; };
116 inline const std::string
underline() {
return details::_int_term_colors.underline; };
118 inline const std::string
blink() {
return details::_int_term_colors.blink; };
120 inline const std::string
col8b_black() {
return details::_int_term_colors.col8b_black; };
122 inline const std::string
col8b_red() {
return details::_int_term_colors.col8b_red; };
124 inline const std::string
col8b_green() {
return details::_int_term_colors.col8b_green; };
126 inline const std::string
col8b_yellow() {
return details::_int_term_colors.col8b_yellow; };
128 inline const std::string
col8b_blue() {
return details::_int_term_colors.col8b_blue; };
131 return details::_int_term_colors.col8b_magenta;
134 inline const std::string
col8b_cyan() {
return details::_int_term_colors.col8b_cyan; };
136 inline const std::string
col8b_white() {
return details::_int_term_colors.col8b_white; };
Namespace for internal details of the logs module.
namespace for basic c++ utilities
Struct representing the terminal colors to be used for printing.
std::string col8b_white
Escape sequence to set white text color.
static TermColors get_config_colors()
Returns a TermColors struct with all colors enabled.
std::string col8b_blue
Escape sequence to set blue text color.
bool colors_on
are colors on in this config
std::string col8b_yellow
Escape sequence to set yellow text color.
std::string reset
Escape sequence to reset the terminal text formatting.
std::string esc_char
Escape character for terminal control sequences.
std::string col8b_red
Escape sequence to set red text color.
std::string faint
Escape sequence to set faint (dim) text formatting.
static TermColors get_config_nocolors()
Returns a TermColors struct with all colors disabled.
std::string underline
Escape sequence to set underlined text formatting.
std::string col8b_magenta
Escape sequence to set magenta (pink) text color.
std::string bold
Escape sequence to set bold text formatting.
std::string col8b_black
Escape sequence to set black text color.
std::string col8b_cyan
Escape sequence to set cyan text color.
std::string col8b_green
Escape sequence to set green text color.
std::string blink
Escape sequence to set blinking text formatting.
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.
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.
#define TERM_ESCAPTE_CHAR
Escape character for terminal control sequences.
const std::string col8b_red()
Get the red terminal escape char.