more terminals support color.

SVN revision: 49104
This commit is contained in:
Gustavo Sverzut Barbieri 2010-05-21 15:13:16 +00:00
parent 24aba4e191
commit 1216d02d7f
1 changed files with 3 additions and 1 deletions

View File

@ -75,7 +75,9 @@ def report_text():
print hdrfmt % n[-fmtsize:],
print
if options.color and os.environ.get("TERM", "") == "xterm":
if options.color and os.environ.get("TERM", "") in (
"xterm", "xterm-color", "rxvt", "rxvt-unicode", "screen",
"Eterm", "aterm", "gnome", "interix"):
color_good = "\033[1;32m"
color_bad = "\033[1;31m"
color_equal = "\033[1;30m"