diff --git a/CRT.c b/CRT.c index 868f2377..95f8cc13 100644 --- a/CRT.c +++ b/CRT.c @@ -1013,9 +1013,11 @@ IGNORE_WCASTQUAL_END } void CRT_done() { - attron(CRT_colors[RESET_COLOR]); + int resetColor = CRT_colors ? CRT_colors[RESET_COLOR] : CRT_colorSchemes[COLORSCHEME_DEFAULT][RESET_COLOR]; + + attron(resetColor); mvhline(LINES - 1, 0, ' ', COLS); - attroff(CRT_colors[RESET_COLOR]); + attroff(resetColor); refresh(); curs_set(1);