From 1216d02d7f5c7b27de9ce6ff275c3505fbbb5065 Mon Sep 17 00:00:00 2001 From: Gustavo Sverzut Barbieri Date: Fri, 21 May 2010 15:13:16 +0000 Subject: [PATCH] more terminals support color. SVN revision: 49104 --- src/bin/expedite-cmp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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(): 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"