mirror of
https://github.com/ariya/phantomjs.git
synced 2024-10-26 14:29:13 +03:00
[Windows] Disable color output detection
This commit is contained in:
parent
a22775a188
commit
3e8e04e3d6
@ -6,6 +6,7 @@ import errno
|
||||
import glob
|
||||
import imp
|
||||
import os
|
||||
import platform
|
||||
import posixpath
|
||||
import re
|
||||
import shlex
|
||||
@ -79,7 +80,7 @@ def activate_colorization(options):
|
||||
elif options.color == "never":
|
||||
_COLORS = _COLOR_NONE
|
||||
else:
|
||||
if sys.stdout.isatty():
|
||||
if sys.stdout.isatty() and platform.system() != "Windows":
|
||||
try:
|
||||
n = int(subprocess.check_output(["tput", "colors"]))
|
||||
if n >= 8:
|
||||
|
Loading…
Reference in New Issue
Block a user