Re:Disabling ANSI color output
by Kenji on Wednesday February 07, 2018 @02:36AM
(#16322855)
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.
[ Parent
| on HN ]
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.