git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [RFC PATCH] color: respect the $NO_COLOR convention

From
Junio C Hamano <gitster@pobox.com>
Date
Mar 5, 2018, 02:24 UTC
Message-ID
<xmqqvaeb9s4t.fsf@gitster-ct.c.googlers.com>
In-Reply-To
<20180304223925.GA808005@genre.crustytoothpaste.net>
"brian m. carlson" <sandals@crustytoothpaste.net> writes:
Show 8 quoted lines
> As a note, turning off color can improve accessibility for some people.
> I have a co-worker who has deuteranomaly and virtually all colored text
> at the terminal poses readability problems.  It would be beneficial if
> he could just set NO_COLOR=1 in his environment and have everything just
> work.
>
> For this reason, I'm in favor of taking this patch, assuming it comes
> with tests.

Oh, I agree 100% the world would be a better place if there already is an established way to turn off all colors, instead of having to run around and setting tool specific configuration like LS_COLORS etc. for 42 different tools one uses during one's daily life. I just am not getting the feeling this no-color.org's effort is the one. We already have a way specific to our project already (i.e. configuration variables), so if we adopt NO_COLOR but other people do not universally support it (and they support something else), we'd end up having to maintain yet another knob that only a handful of projects understand forever, and that is where my reluctance comes from.

Previous: brian m. carlson
Message 6 of 6 in “color: respect the $NO_COLOR convention”
  1. color: respect the $NO_COLOR conventionLeah Neukirchen, Mar 1, 2018
  2. Junio C HamanoMar 1, 2018
  3. Leah NeukirchenMar 1, 2018
  4. Junio C HamanoMar 1, 2018
  5. brian m. carlsonMar 4, 2018
  6. Junio C HamanoMar 5, 2018

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.