Allow color 'yellow' for option -f and -b
authorWladimir J. van der Laan <laanwj@gmail.com>
Sat, 23 Dec 2017 07:24:51 +0000 (08:24 +0100)
committerWladimir J. van der Laan <laanwj@gmail.com>
Sat, 23 Dec 2017 07:25:38 +0000 (08:25 +0100)
This color was missing in `getcolor()`, but is supported by the ncurses
backend, so add it.

src/curses/ux_init.c

index 7c5e86accf88bfaded9e453366d18223684cd0d4..1f5a0fd1a980721344507cd081b841d549ec1512 100644 (file)
@@ -920,6 +920,8 @@ static int getcolor(char *value)
                return CYAN_COLOUR;
        if (strcmp(value, "white") == 0)
                return WHITE_COLOUR;
+       if (strcmp(value, "yellow") == 0)
+               return YELLOW_COLOUR;
 
        if (strcmp(value, "purple") == 0)
                return MAGENTA_COLOUR;