{
static const struct ul_color_name basic_schemes[] = {
{ "black", UL_COLOR_BLACK },
+ { "blink", UL_COLOR_BLINK },
{ "blue", UL_COLOR_BLUE },
+ { "bold", UL_COLOR_BOLD },
{ "brown", UL_COLOR_BROWN },
{ "cyan", UL_COLOR_CYAN },
{ "darkgray", UL_COLOR_DARK_GRAY },
{ "gray", UL_COLOR_GRAY },
{ "green", UL_COLOR_GREEN },
+ { "halfbright", UL_COLOR_HALFBRIGHT },
{ "lightblue", UL_COLOR_BOLD_BLUE },
{ "lightcyan", UL_COLOR_BOLD_CYAN },
{ "lightgray,", UL_COLOR_GRAY },
{ "lightred", UL_COLOR_BOLD_RED },
{ "magenta", UL_COLOR_MAGENTA },
{ "red", UL_COLOR_RED },
+ { "reset", UL_COLOR_RESET, },
+ { "reverse", UL_COLOR_REVERSE },
{ "yellow", UL_COLOR_BOLD_YELLOW },
};
struct ul_color_name key = { .name = (char *) str }, *res;
is a color name, ASCII color sequences or escape sequences.
.SS Color names
-black, blue, brown, cyan, darkgray, gray, green, lightblue, lightcyan
-lightgray, lightgreen, lightmagenta, lightred, magenta, red and yellow
+black, blink, blue, bold, brown, cyan, darkgray, gray, green, halfbright,
+lightblue, lightcyan, lightgray, lightgreen, lightmagenta, lightred, magenta,
+red, reset, reverse, and yellow.
+
.SS ANSI color sequences
The color sequences are composed of sequences of numbers
separated by semicolons. The most common codes are: