Do not use colors for jython in cmd.exe by default

This commit is contained in:
Thomas Nagy 2015-03-06 23:02:23 +01:00
parent ea8ff1c6ab
commit 6a73ff9512
No known key found for this signature in database
GPG Key ID: 67A565EDFDF90E64
1 changed files with 1 additions and 1 deletions

View File

@ -46,7 +46,7 @@ def enable_colors(use):
if use == 1:
if not (sys.stderr.isatty() or sys.stdout.isatty()):
use = 0
if Utils.is_win32:
if Utils.is_win32 and os.name != 'java':
term = os.environ.get('TERM', '') # has ansiterm
else:
term = os.environ.get('TERM', 'dumb')