mmCEsim 0.3.0
mmWave Channel Estimation Simulation
|
Control terminal colors and styles. More...
#include <term.h>
Static Public Member Functions | |
static void | disable () |
Disable terminal color and style. More... | |
static void | enable () |
Enable terminal color and style. More... | |
template<typename T > | |
static void | error (const T &msg) |
Print error message. More... | |
template<typename T > | |
static void | message (const T &msg) |
Print a message. More... | |
template<typename T > | |
static void | warning (const T &msg) |
Print a warning message. More... | |
static void | detectEnv () |
Detect environment variable of NO_COLOR. More... | |
Static Public Attributes | |
static TermOpt | BLACK = "30" |
static TermOpt | RED = "31" |
static TermOpt | GREEN = "32" |
static TermOpt | YELLOW = "33" |
static TermOpt | BLUE = "34" |
static TermOpt | MAGENTA = "35" |
static TermOpt | CYAN = "36" |
static TermOpt | WHITE = "37" |
static TermOpt | DEFAULT = "39" |
static TermOpt | BG_BLACK = "40" |
static TermOpt | BG_RED = "41" |
static TermOpt | BG_GREEN = "42" |
static TermOpt | BG_YELLOW = "43" |
static TermOpt | BG_BLUE = "44" |
static TermOpt | BG_MAGENTA = "45" |
static TermOpt | BG_CYAN = "46" |
static TermOpt | BG_WHITE = "47" |
static TermOpt | BG_DEFAULT = "49" |
static TermOpt | RESET = "0" |
static TermOpt | BF = "1" |
static TermOpt | DIM = "2" |
static TermOpt | IT = "3" |
static TermOpt | UL = "4" |
static TermOpt | BLINK = "5" |
static TermOpt | INV = "7" |
static TermOpt | OFF_BF = "21" |
static TermOpt | OFF_DIM = "22" |
static TermOpt | OFF_IT = "23" |
static TermOpt | OFF_UL = "24" |
static TermOpt | OFF_BLINK = "25" |
static TermOpt | OFF_INV = "27" |
static TermOpt | ERR = RED | BF |
static TermOpt | MSG = YELLOW |
static TermOpt | WAR = YELLOW | BF |
Control terminal colors and styles.
|
static |
Detect environment variable of NO_COLOR.
If environment variable NO_COLOR is set to a non-empty variable, The color terminal is disabled. View https://no-color.org for more information.
|
static |
Disable terminal color and style.
|
static |
Enable terminal color and style.
The color and style is on by default.
|
inlinestatic |
Print error message.
T | The message type. |
msg | The error message. |
|
inlinestatic |
Print a message.
T | The message type. |
msg | The message. |
|
inlinestatic |
Print a warning message.
T | The warning message type. |
msg | The warning message. |
|
inlinestatic |
bold/bright
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
slow blink (150 times/min)
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
dim (faint)
|
inlinestatic |
|
inlinestatic |
inverse FG and BG
|
inlinestatic |
italic
|
inlinestatic |
|
inlinestatic |
off bold/bright
|
inlinestatic |
off slow blink (150 times/min)
|
inlinestatic |
dim (faint)
|
inlinestatic |
off inverse FG and BG
|
inlinestatic |
italic
|
inlinestatic |
off underline
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
underline
|
inlinestatic |
|
inlinestatic |