summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGustavo Sverzut Barbieri <barbieri@gmail.com>2010-05-21 15:13:16 +0000
committerGustavo Sverzut Barbieri <barbieri@gmail.com>2010-05-21 15:13:16 +0000
commit1216d02d7f5c7b27de9ce6ff275c3505fbbb5065 (patch)
treee0c557fbe7c0bd551b79ba01d0fc4b62a77247a5
parent24aba4e19103b8bb4a619b79753144c4558f0a76 (diff)
more terminals support color.
SVN revision: 49104
-rwxr-xr-xsrc/bin/expedite-cmp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/bin/expedite-cmp b/src/bin/expedite-cmp
index 8acdf5f..2df01ad 100755
--- a/src/bin/expedite-cmp
+++ b/src/bin/expedite-cmp
@@ -75,7 +75,9 @@ def report_text():
75 print hdrfmt % n[-fmtsize:], 75 print hdrfmt % n[-fmtsize:],
76 print 76 print
77 77
78 if options.color and os.environ.get("TERM", "") == "xterm": 78 if options.color and os.environ.get("TERM", "") in (
79 "xterm", "xterm-color", "rxvt", "rxvt-unicode", "screen",
80 "Eterm", "aterm", "gnome", "interix"):
79 color_good = "\033[1;32m" 81 color_good = "\033[1;32m"
80 color_bad = "\033[1;31m" 82 color_bad = "\033[1;31m"
81 color_equal = "\033[1;30m" 83 color_equal = "\033[1;30m"