do not output bold at all when stdout is not a tty

This commit is contained in:
Romain Bignon 2013-07-27 17:19:54 +02:00
commit 9d46a62d6c

View file

@ -63,7 +63,7 @@ class ConsoleApplication(BaseApplication):
CAPS = None
# shell escape strings
if sys.platform == 'win32':
if sys.platform == 'win32' or not os.isatty(sys.stdout.fileno()):
#workaround to disable bold
BOLD = ''
NC = '' # no color