From 345900394fde8946086c0b689a83912a374080cc Mon Sep 17 00:00:00 2001 From: =?utf8?q?Luk=C3=A1=C5=A1=20Ji=C5=99i=C5=A1t=C4=9B?= Date: Sun, 15 Dec 2024 15:01:49 +0100 Subject: [PATCH] Change the default colors to the terminal default. --- src/colors.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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 ; } -- 2.30.2