aboutsummaryrefslogtreecommitdiffstats
path: root/noice.c
diff options
context:
space:
mode:
authorLazaros Koromilas <lostd@2f30.org>2019-02-03 22:37:35 +0200
committerLazaros Koromilas <lostd@2f30.org>2019-02-03 22:37:35 +0200
commit3adbce1b597e0812f1e503e82a671a84ae105f89 (patch)
treeaae7057922c8945db2644b3ba9d610ac029d7394 /noice.c
parent3f05a6cc674f5bcca9ca0234906ac9804f5b8be3 (diff)
downloadnoice-3adbce1b597e0812f1e503e82a671a84ae105f89.tar.gz
Control color support with a simple flag
Diffstat (limited to 'noice.c')
-rw-r--r--noice.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/noice.c b/noice.c
index 388d547..3b8068e 100644
--- a/noice.c
+++ b/noice.c
@@ -321,7 +321,7 @@ initcurses(void)
fprintf(stderr, "failed to initialize curses\n");
exit(1);
}
- if (has_colors())
+ if (usecolor && has_colors())
initcolor();
cbreak();
noecho();
Un proyecto texto-plano.xyz