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
|
CAPS = None
|
||||||
|
|
||||||
# shell escape strings
|
# shell escape strings
|
||||||
if sys.platform == 'win32':
|
if sys.platform == 'win32' or not os.isatty(sys.stdout.fileno()):
|
||||||
#workaround to disable bold
|
#workaround to disable bold
|
||||||
BOLD = ''
|
BOLD = ''
|
||||||
NC = '' # no color
|
NC = '' # no color
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue