diff options
author | Lazaros Koromilas <lostd@2f30.org> | 2019-02-03 22:31:59 +0200 |
---|---|---|
committer | Lazaros Koromilas <lostd@2f30.org> | 2019-02-03 22:33:44 +0200 |
commit | b79ccad126783cdc55aab2580bbc3a85da44fb8d (patch) | |
tree | 2b5de46278f3dd2fc4c5f4419a766682f4d41bf7 | |
parent | 6e3bbd735d76ea3144694972c5eacab32e4e7868 (diff) | |
download | noice-b79ccad126783cdc55aab2580bbc3a85da44fb8d.tar.gz |
Honor the default terminal foreground and background
-rw-r--r-- | config.def.h | 12 | ||||
-rw-r--r-- | noice.c | 1 |
2 files changed, 7 insertions, 6 deletions
diff --git a/config.def.h b/config.def.h index 2808581..52ce87a 100644 --- 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[] = { @@ -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); } |