Change the default colors to the terminal default.
authorLukáš Jiřiště <gymnazium.jiriste@gmail.com>
Sun, 15 Dec 2024 14:01:49 +0000 (15:01 +0100)
committerLukáš Jiřiště <gymnazium.jiriste@gmail.com>
Sun, 15 Dec 2024 14:14:17 +0000 (15:14 +0100)
src/colors.c

index 7bc7bd73b7e7ab0705017c611f17111c418c8148..85ebb9425205e1fe7e2c57fbef029d464ff67900 100644 (file)
@@ -15,9 +15,10 @@ void init_colors(void)
        if (!has_colors())
                return ;
        start_color();
-       init_pair(NC_RED, COLOR_RED, COLOR_BLACK);
-       init_pair(NC_GREEN, COLOR_GREEN, COLOR_BLACK);
-       init_pair(NC_BLUE, COLOR_BLUE, COLOR_BLACK);
+       use_default_colors();
+       init_pair(NC_RED, COLOR_RED, -1);
+       init_pair(NC_GREEN, COLOR_GREEN, -1);
+       init_pair(NC_BLUE, COLOR_BLUE, -1);
        return ;
 }