Page 1 of 1

Option to output logfile in plain text (even in 256 color xterm terminal)

Posted: 05 Jul 2019, 04:01
by huuanh2811
Would it be possible to include an option to force plain text output of the logfile specified with the

Code: Select all

--log-file
option?
It would be desirable, as it would result in more readable logs in less capable terminals and obviate any need for later removal ansicodes if so desired.

Re: Option to output logfile in plain text (even in 256 color xterm terminal)

Posted: 05 Jul 2019, 05:50
by rednoah
I see. Looks like the log file includes color codes too if the process is running in an interactive terminal.

Disable colors:

Code: Select all

export TERM=xterm
filebot ...
Enable colors:

Code: Select all

export TERM=xterm-256color
filebot ...
Alternatively, if FileBot is called without interactive console, then it'll always be without color codes.



EDIT:

What version of FileBot are you using? Looking at the code, colors are always disabled for log files. At the very least for any recent release.