aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLazaros Koromilas <lostd@2f30.org>2019-02-03 22:31:59 +0200
committerLazaros Koromilas <lostd@2f30.org>2019-02-03 22:33:44 +0200
commitb79ccad126783cdc55aab2580bbc3a85da44fb8d (patch)
tree2b5de46278f3dd2fc4c5f4419a766682f4d41bf7
parent6e3bbd735d76ea3144694972c5eacab32e4e7868 (diff)
downloadnoice-b79ccad126783cdc55aab2580bbc3a85da44fb8d.tar.gz
Honor the default terminal foreground and background
-rw-r--r--config.def.h12
-rw-r--r--noice.c1
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[] = {
diff --git a/noice.c b/noice.c
index 4dc1878..388d547 100644
--- 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);
}
Un proyecto texto-plano.xyz