3 ms·
I don't remember what was the last instance of a command barfing ansi escape sequences into a non-tty output stream, but it was just a couple days ago. I encoun
by andreareina 3y ago
I don't remember what was the last instance of a command barfing ansi escape sequences into a non-tty output stream, but it was just a couple days ago. I encounter badly-behaved software more frequently than your seem to, and I have more confidence in "don't provide colour (or other fancy text) unless the user asks for it" than "it's fine except for this set of exceptions that who knows if it's complete or not".
- FeepingCreature 3y agoSure, but that has a simple solution not even mentioned in this post: isatty(1)
- account42 3y agoJust remember that stdout and stderr can be both a tty, neither a tty or one is a tty while the other is not.