Disable color on output

Support for Windows users
Post Reply
IceQueen
Posts: 18
Joined: 28 Jul 2019, 11:08

Disable color on output

Post by IceQueen »

Filebot is displaying output in color.
Is there a way to turn this off?
With all due respect, it doesn't look nice IMHO
And given it can take up to 30 minutes to process large files, it's quite distracting.
User avatar
rednoah
The Source
Posts: 22923
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Disable color on output

Post by rednoah »

FileBot will use ANSI color codes for different log levels if filebot is called from an interactive terminal.


:idea: You can use --log INFO to reduce the log level. That will remove the colored lines from the output, except the warning / error messages.


:idea: You can use I/O redirection to make the process non-interactive and thus disable ANSI color codes. I'm not too familiar with PowerShell, but on Unix Shell you'd do something like filebot > stdout.txt or filebot | cat.


Image



EDIT:

Write-Output is the PowerShell equivalent for cat in this use case and can be used to force non-interactive output:

Code: Select all

filebot -script fn:sysenv | Write-Output
:idea: Please read the FAQ and How to Request Help.
Post Reply