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

All your suggestions, requests and ideas for future development
Post Reply
huuanh2811
Posts: 1
Joined: 05 Jul 2019, 04:00

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

Post 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.
User avatar
rednoah
The Source
Posts: 22995
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

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

Post 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.
:idea: Please read the FAQ and How to Request Help.
Post Reply