From bbac4c2a62471f52400c570cb4a4860b5c8f4b5e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20G=C3=B6ttsche?= Date: Wed, 2 Dec 2020 17:52:16 +0100 Subject: Use enum element name instead of magic number --- CRT.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'CRT.c') 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 */ -- cgit v1.2.3