> On Nov 18, 2019, at 03:45, Łukasz Niemier <
luk...@niemier.pl> wrote:
>
> NO_COLOR (
https://no-color.org) initiative is an idea to allow user to explicitly
> opt out from colouring terminal output.
+1, with comments
Text coloring reduces the contrast, making the text more difficult for the visually
impaired to read. More critically, if coloring is being used to convey distinctions,
this information may be unavailable to users of screen readers.
To cite one example, let's say I'm using the excoveralls package to find out which
lines in a particular file are not covered by tests. I run the command as follows:
MIX_ENV=test mix coveralls.detail --filter lib/info_files/cnt_any.ex
The output lists the file's code, rendering it as follows:
- covered lines in green
- uncovered lines in red
- irrelevant lines in black
However, aside from the colors, there is no way to determine which lines are covered.
A given screen reader may or may not represent the color in a discernible (let alone
useful) fashion.
-r