kivy / buildozer

Generic Python packager for Android and iOS
https://buildozer.readthedocs.io
MIT License
1.71k stars 495 forks source link

Disable ANSI output #1386

Open OrangeDog opened 2 years ago

OrangeDog commented 2 years ago

Even with TERM=dumb the tool still insists on full colour output and fancy progress bars.

This is very annoying when dealing with log files or CI systems. There should be a specific option to disable fancy output, as well as respecting common environment variables and whether the output is a terminal, pipe, or file (e.g. via ncurses).

OrangeDog commented 2 years ago

It appears that some of the output is written direct to the terminal, not to stdout or stderr, which complicates things further.

Some, but not all, fancy output is disabled when stderr is redirected.