> I could ask every website to give me a NO_COLOR mode as well, but they don't.
Perhaps more websites than you realise: I use the reader view whenever I can, which is a little bit like $NO_COLOR for websites.
Browsers also tend to widely have support for disabling style sheets and support for overrides, and wide support is more important than theoretical solutions.
I do think it would be great if terminals had broad support for this kind of accessibility feature, but they don’t, and I think adding it is much harder than you think.
> Instead you can greyscale at the OS level or the terminal emulator level if you need it.
This doesn’t work very well in practice unfortunately because the intensity differs so widely and my terminal settings don’t help when I have to look at someone else’s screen.
So while we wait for operating systems and terminal emulators to add more support for the disabled, maybe if you don’t mind, the next time you think about calling puts() with some color-codes in it you could just pretty-please check if $NO_COLOR is set?
Reader view is a giant hack by the browser that more or less ignores what styles the webpage has set.
A better match would be print (view) where the website does get to specify the style (although some browsers add their own heuristics because most websites don't).
Perhaps more websites than you realise: I use the reader view whenever I can, which is a little bit like $NO_COLOR for websites.
Browsers also tend to widely have support for disabling style sheets and support for overrides, and wide support is more important than theoretical solutions.
I do think it would be great if terminals had broad support for this kind of accessibility feature, but they don’t, and I think adding it is much harder than you think.
> Instead you can greyscale at the OS level or the terminal emulator level if you need it.
This doesn’t work very well in practice unfortunately because the intensity differs so widely and my terminal settings don’t help when I have to look at someone else’s screen.
So while we wait for operating systems and terminal emulators to add more support for the disabled, maybe if you don’t mind, the next time you think about calling puts() with some color-codes in it you could just pretty-please check if $NO_COLOR is set?