From: Lukáš Jiřiště Date: Sun, 15 Dec 2024 14:01:49 +0000 (+0100) Subject: Change the default colors to the terminal default. X-Git-Url: https://git.ljiriste.work/?a=commitdiff_plain;h=345900394fde8946086c0b689a83912a374080cc;p=FET_sim.git Change the default colors to the terminal default. --- diff --git a/src/colors.c b/src/colors.c index 7bc7bd7..85ebb94 100644 --- a/src/colors.c +++ b/src/colors.c @@ -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 ; }