noice

small file browser
git clone git://git.2f30.org/noice.git
Log | Files | Refs | README | LICENSE

commit b79ccad126783cdc55aab2580bbc3a85da44fb8d
parent 6e3bbd735d76ea3144694972c5eacab32e4e7868
Author: Lazaros Koromilas <lostd@2f30.org>
Date:   Sun,  3 Feb 2019 22:31:59 +0200

Honor the default terminal foreground and background

Diffstat:
Mconfig.def.h | 12++++++------
Mnoice.c | 1+
2 files changed, 7 insertions(+), 6 deletions(-)

diff --git a/config.def.h b/config.def.h @@ -29,12 +29,12 @@ char *idlecmd = "rain"; /* The screensaver program */ struct cpair pairs[] = { { .fg = 0, .bg = 0 }, /* pairs start at 1 */ - { COLOR_RED, 0 }, - { COLOR_GREEN, 0 }, - { COLOR_YELLOW, 0 }, - { COLOR_BLUE, 0 }, - { COLOR_MAGENTA, 0 }, - { COLOR_CYAN, 0 }, + { COLOR_RED, -1 }, + { COLOR_GREEN, -1 }, + { COLOR_YELLOW, -1 }, + { COLOR_BLUE, -1 }, + { COLOR_MAGENTA, -1 }, + { COLOR_CYAN, -1 }, }; struct assoc assocs[] = { diff --git a/noice.c b/noice.c @@ -303,6 +303,7 @@ initcolor(void) int i; start_color(); + use_default_colors(); for (i = 1; i < LEN(pairs); i++) init_pair(i, pairs[i].fg, pairs[i].bg); }