Why do some #Linux and #Unix users get upset when their favorite CLI app/command adds a color option to its output messages? This option is usually off by default and controlled by a command-line option or an environment variable. I think colors can be useful in certain cases, such as highlighting specific values say like GATEWAY IP or error codes or messages. There's no need to be yell towards FLOSS developers who are providing and maintaining these utilities for free. I'm just saying ...

@nixCraft Actually there is not even a need to disable color by default: Colors only cause trouble when working with pipes and redirections. Whether a program is writing to a terminal or to a pipe can trivially checked by calling istty().

These people complaining are bullies. We should ban them from our communities.

@nixCraft Actually I'd also love to see more Unicode used in CLI output. Especially emoji can be very useful to make output of CLI applications much more readable and useful.

@taschenorakel @nixCraft "Only causes trouble when using pipes and redirections" or on high contrast screens, or when another program reads the input expecting plain text, or when the user is colour-blind....

I'm all for being nice to the developers. At the same time let's not sweep real issues under the rug.

@nixCraft I can't imagine why somebody would get upset over such a thing, but boy do they have too much time on their hands.
@nixCraft I'm highly dyslexic.
Even something as simple as “color code” to help me separate lines or blocks is more helpful to me than you can even imagine.
@d1re_w0lf @nixCraft This, very much. Not dyslexic, but I struggled even reading man pages until I discovered batman. Color helps very much to parse text as not just blobs of meaningless gobbledygook. It is an accessibility tool.
@d1re_w0lf
This is an interesting thought and seems to represent an opposing requirement from color blindness issues I tend to face.
@nixCraft
@nixCraft I'd love if those worked through multiple commands in a row - but they don't. i.e. grep shows colored matches, but if you pipe it through anything else, colouring is lost.
I understand the reasons, but anyway...

@nixCraft I'm one of those people who really really dislikes colour in console output. It makes everything harder to read, especially in a terminal with a dark background. Syntax highlighting is usually one of the first things I turn off in text editors too.

I don't yell at the developers or anything (as long as there is an option to disable it), but it irks me when they enable stuff like that by default.

@nixCraft

Ire strongly correlates with whether the program

• respects $NO_COLOR¹

• behaves properly when isatty() vs when piped to a subsequent program

• properly consults termcap/terminfo, respecting terminals other than VT100 or xterm-color


¹ https://no-color.org/

NO_COLOR: disabling ANSI color output by default

@nixCraft In Linux, I set a coloured prompt and I enable auto colours on ls and on grep. Doesn't everyone?
@nixCraft We don't get upset by that. We get upset by applications forcing colour output no matter what, not detecting being piped, spamming logs with escape codes. There's plenty of software misbehaving like that.
@nixCraft Abuse is never acceptable, but I would like to write a script without worrying whether an update makes a dancing hamster fscks the i/o of cronjob.

@nixCraft I have no idea. Personally I love a colored terminal and I think a lot of other people do, too, given that it's the default in a lot of distributions.

Just gotta ignore the haters.

@nixCraft I don’t yell when the option is added.

I holler into the ether when the previously new option is now the default.

@nixCraft isually the color goes away witch appending

| cat

"the cat ate the colors"

@nixCraft
640Kb should be enough for everyone. 😄

@nixCraft

I find it on by default too many times. Often color blind unfriendly colors. Often makes assumptions about other external factors (dark versus light mode).

Environment variables or command line options don't scale well. New commands adding stuff need to be tracked and whacked. Using large numbers of systems becomes difficult without full configuration management.

If you need fancy visual effects you might want a GUI.

#Linux #Unix