diff options
author | Christian Göttsche <cgzones@googlemail.com> | 2020-12-02 17:52:16 +0100 |
---|---|---|
committer | Christian Göttsche <cgzones@googlemail.com> | 2020-12-02 17:52:16 +0100 |
commit | bbac4c2a62471f52400c570cb4a4860b5c8f4b5e (patch) | |
tree | bbc7444c8b88e5fc6c82a2bfe3eea57ff5917e09 | |
parent | 65866c69d6e60f51ed3ae657d21d799169886d47 (diff) |
Use enum element name instead of magic number
-rw-r--r-- | CRT.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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 */ |