rcfile: allow using "grey" or "gray" as a synonym for "lightblack"

Because "lightblack" sounds strange and will not occur to many people
as a possible color name.
master
Benno Schulenberg 2021-05-25 15:56:06 +02:00
parent e044284998
commit 8974430c11
1 changed files with 5 additions and 3 deletions

View File

@ -991,19 +991,21 @@ void parse_includes(char *ptr)
free(expanded);
}
#define COLORCOUNT 18
#define COLORCOUNT 20
const char hues[COLORCOUNT][8] = { "red", "green", "blue",
"yellow", "cyan", "magenta",
"white", "black", "normal",
"pink", "purple", "mauve",
"lagoon", "mint", "lime",
"peach", "orange", "latte" };
"peach", "orange", "latte",
"grey", "gray" };
short indices[COLORCOUNT] = { COLOR_RED, COLOR_GREEN, COLOR_BLUE,
COLOR_YELLOW, COLOR_CYAN, COLOR_MAGENTA,
COLOR_WHITE, COLOR_BLACK, THE_DEFAULT,
204, 163, 134, 38, 48, 148, 215, 208, 137 };
204, 163, 134, 38, 48, 148, 215, 208, 137,
COLOR_BLACK + 8, COLOR_BLACK + 8 };
/* Return the short value corresponding to the given color name, and set
* vivid to TRUE for a lighter color, and thick for a heavier typeface. */