Re:Disabling ANSI color output
by jcoffland on Wednesday February 07, 2018 @02:33AM
(#16322844)
If you don't want see color output, asking every program to follow a new standard is silly when you could easily handle it in one application. The terminal.
[ Parent
| on HN ]
You could also pipe the output through a program that filters ANSI colour codes. That'd be an extremely simple utility and fix for the problem.
Extremely simple, and also wrong. Whether stdout is a pipe or a tty makes differences to programs, sometimes huge differences. For example, when connected to a tty, `git log` will use a pager when the output length exceeds the terminal height. With piping, it cannot do that.