mirror of https://gitlab.com/ita1024/waf.git
use colors only if stdout and stderr are both ttys
This commit is contained in:
parent
3557c4caf3
commit
34bb10d935
|
@ -74,7 +74,7 @@ colors_lst = {
|
|||
got_tty = not os.environ.get('TERM', 'dumb') in ['dumb', 'emacs']
|
||||
if got_tty:
|
||||
try:
|
||||
got_tty = sys.stderr.isatty()
|
||||
got_tty = sys.stderr.isatty() and sys.stdout.isatty()
|
||||
except AttributeError:
|
||||
got_tty = False
|
||||
|
||||
|
|
Loading…
Reference in New Issue