When I redirect the output through | or to a file with >, it still contains Bash color marks. Could this be disabled? (while keeping the colors during normal output)
I regularly color output of PHP console applications using symfony/console, and it also disables the coloring when redirected, so it should be possible to detect and do this automatically.
When I redirect the output through
|
or to a file with>
, it still contains Bash color marks. Could this be disabled? (while keeping the colors during normal output)I regularly color output of PHP console applications using
symfony/console
, and it also disables the coloring when redirected, so it should be possible to detect and do this automatically.