From 73487af3929c674e2a60ad878da6a5e7c5d70fa3 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Sat, 10 Feb 2007 22:18:07 +0000 Subject: [PATCH] Make xterm titles work even when color is disabled. Thanks to Joachim Kaeber in bug #166255. svn path=/main/trunk/; revision=5950 --- pym/portage/output.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pym/portage/output.py b/pym/portage/output.py index 600b8183b..0b58c81b6 100644 --- a/pym/portage/output.py +++ b/pym/portage/output.py @@ -174,7 +174,7 @@ def nc_len(mystr): return len(tmp) def xtermTitle(mystr, raw=False): - if havecolor and dotitles and os.environ.has_key("TERM") and sys.stderr.isatty(): + if dotitles and "TERM" in os.environ and sys.stderr.isatty(): myt=os.environ["TERM"] legal_terms = ["xterm","Eterm","aterm","rxvt","screen","kterm","rxvt-unicode","gnome"] for term in legal_terms: -- 2.26.2