Scope-eye.net Git Repository
/
liskon_frotz.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b8fa3db
)
Allow color 'yellow' for option -f and -b
author
Wladimir J. van der Laan
<laanwj@gmail.com>
Sat, 23 Dec 2017 07:24:51 +0000
(08:24 +0100)
committer
Wladimir 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
patch
|
blob
|
history
diff --git
a/src/curses/ux_init.c
b/src/curses/ux_init.c
index 7c5e86accf88bfaded9e453366d18223684cd0d4..1f5a0fd1a980721344507cd081b841d549ec1512 100644
(file)
--- a/
src/curses/ux_init.c
+++ b/
src/curses/ux_init.c
@@
-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;