mirror of
https://github.com/jarun/nnn.git
synced 2024-11-28 05:41:31 +00:00
Add suport for "standard" NO_COLOR env variable (#508)
See https://no-color.org
This commit is contained in:
parent
6d13fce698
commit
f14fb9c0f9
2
nnn.1
2
nnn.1
|
@ -410,6 +410,8 @@ separated by \fI;\fR:
|
||||||
.Pp
|
.Pp
|
||||||
\fBnnn:\fR this is a special variable set to the hovered entry before executing
|
\fBnnn:\fR this is a special variable set to the hovered entry before executing
|
||||||
a command from the command prompt or spawning a shell.
|
a command from the command prompt or spawning a shell.
|
||||||
|
.Pp
|
||||||
|
\fBNO_COLOR:\fR if defined, disable ANSI color output.
|
||||||
.Sh KNOWN ISSUES
|
.Sh KNOWN ISSUES
|
||||||
.Nm
|
.Nm
|
||||||
may not handle keypresses correctly when used with tmux (see issue #104 for
|
may not handle keypresses correctly when used with tmux (see issue #104 for
|
||||||
|
|
|
@ -1524,7 +1524,7 @@ static bool initcurses(void *oldmask)
|
||||||
#endif
|
#endif
|
||||||
curs_set(FALSE); /* Hide cursor */
|
curs_set(FALSE); /* Hide cursor */
|
||||||
|
|
||||||
if (!(g_states & STATE_NOCOLOR)) {
|
if (!(g_states & STATE_NOCOLOR || getenv("NO_COLOR"))) {
|
||||||
start_color();
|
start_color();
|
||||||
use_default_colors();
|
use_default_colors();
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue