diff options
| author | 2020-04-05 03:56:18 +0200 | |
|---|---|---|
| committer | 2020-04-05 03:56:18 +0200 | |
| commit | f14fb9c0f92c25ab79dd0c47d16f075199aeb999 (patch) | |
| tree | 0814a951a1b6c9f3fc53c51b9085522cb152c2e0 /src | |
| parent | 6d13fce69851d8880f408a22f6e9bee8ff708d11 (diff) | |
| download | nnn-f14fb9c0f92c25ab79dd0c47d16f075199aeb999.tar.gz | |
Add suport for "standard" NO_COLOR env variable (#508)
See https://no-color.org
Diffstat (limited to 'src')
| -rw-r--r-- | src/nnn.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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(); |