Commit 8f0ac7c8 authored by Leah Neukirchen's avatar Leah Neukirchen

support $NO_COLOR

http://no-color.org/
parent a5dcf178
......@@ -115,6 +115,9 @@ Don't enter directories.
.It Fl G
Colorize output to TTY.
Use twice to force colorized output.
If the environment variable
.Ev NO_COLOR
is set, colors are never used.
.It Fl X
Output OSC 8 hyperlinks to TTY.
Use twice to force hyperlinks.
......
......@@ -2468,6 +2468,8 @@ main(int argc, char *argv[])
if (Xflag == 1)
Xflag = 0;
}
if (getenv("NO_COLOR"))
Gflag = 0;
analyze_format();
if (Uflag) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment