$ ffmpeg -v debug ...
Coloured output.
$ ffmpeg -v debug ... |& less -R
Dull output.
How do I make the output coloured while piping it to something?
colorslesspipepty
$ ffmpeg -v debug ...
Coloured output.
$ ffmpeg -v debug ... |& less -R
Dull output.
How do I make the output coloured while piping it to something?
Best Answer
For commands that do not have an option similar to
--color=always
, you can do, e.g. with your example:What
script
does is that it runs the command in a terminal session.EDIT: Instead of a command string, if you want to be able to provide an array, then the following zsh wrapper script seems to work: