do not output bold at all when stdout is not a tty
This commit is contained in:
parent
9094294683
commit
9d46a62d6c
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue