85 "\033[2m",
"\033[4m",
"\033[5m",
86 "\033[7m",
"\033[8m",
"\033[K"};
92 "\033[32m",
"\033[33m",
"\033[34m",
93 "\033[35m",
"\033[36m",
"\033[37m"};
99 "",
"\033[40m",
"\033[41m",
"\033[42m",
"\033[43m",
100 "\033[44m",
"\033[45m",
"\033[46m",
"\033[47m"};
105inline constexpr const char*
LIBXR_BOLD_STR[] = {
"",
"\033[33m\033[1m",
"\033[31m\033[1m",
LibXR Color Control Library / LibXR终端颜色控制库
Background
Terminal background color (Background) / 终端背景颜色 (Background)
Font
Terminal font color (Font) / 终端字体颜色 (Font)
constexpr const char * LIBXR_BOLD_STR[]
ANSI escape sequences for bold styles / ANSI转义序列 - 粗体样式
Format
Terminal text format (Format) / 终端文本格式 (Format)
constexpr auto min(T1 a, T2 b) -> typename std::common_type< T1, T2 >::type
计算两个数的最小值
constexpr const char * LIBXR_FONT_STR[]
ANSI escape sequences for font color / ANSI转义序列 - 字体颜色
constexpr const char * LIBXR_FORMAT_STR[]
ANSI escape sequences for text format / ANSI转义序列 - 文本格式
Bold
Terminal bold style (Bold) / 终端粗体样式 (Bold)
constexpr const char * LIBXR_BACKGROUND_STR[]
ANSI escape sequences for background color / ANSI转义序列 - 背景颜色