Use enum element name instead of magic number

This commit is contained in:
Christian Göttsche 2020-12-02 17:52:16 +01:00
parent 65866c69d6
commit bbac4c2a62
1 changed files with 2 additions and 1 deletions

3
CRT.c
View File

@ -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 */