From f14fb9c0f92c25ab79dd0c47d16f075199aeb999 Mon Sep 17 00:00:00 2001 From: lvgx Date: Sun, 5 Apr 2020 03:56:18 +0200 Subject: Add suport for "standard" NO_COLOR env variable (#508) See https://no-color.org --- src/nnn.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/nnn.c b/src/nnn.c index 20f42b6..6e55389 100644 --- a/src/nnn.c +++ b/src/nnn.c @@ -1524,7 +1524,7 @@ static bool initcurses(void *oldmask) #endif curs_set(FALSE); /* Hide cursor */ - if (!(g_states & STATE_NOCOLOR)) { + if (!(g_states & STATE_NOCOLOR || getenv("NO_COLOR"))) { start_color(); use_default_colors(); -- cgit v1.2.3-70-g09d2