3 ms·
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.
by Kenji 9y ago
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.
- majewsky 9y agoExtremely 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.
- Kenji 9y agoWell then the utility that does this filtering has to pretend it's a TTY.