summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian Göttsche <cgzones@googlemail.com>2020-12-02 17:52:16 +0100
committerChristian Göttsche <cgzones@googlemail.com>2020-12-02 17:52:16 +0100
commitbbac4c2a62471f52400c570cb4a4860b5c8f4b5e (patch)
treebbc7444c8b88e5fc6c82a2bfe3eea57ff5917e09
parent65866c69d6e60f51ed3ae657d21d799169886d47 (diff)
Use enum element name instead of magic number
-rw-r--r--CRT.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/CRT.c b/CRT.c
index c1fcb0df..02063552 100644
--- a/CRT.c
+++ b/CRT.c
@@ -719,9 +719,10 @@ void CRT_init(const int* delay, int colorScheme, bool allowUnicode) {
signal(SIGTERM, CRT_handleSIGTERM);
signal(SIGQUIT, CRT_handleSIGTERM);
+
use_default_colors();
if (!has_colors())
- CRT_colorScheme = 1;
+ CRT_colorScheme = COLORSCHEME_MONOCHROME;
CRT_setColors(CRT_colorScheme);
/* initialize locale */

© 2014-2024 Faster IT GmbH | imprint | privacy policy