summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2007-02-10 22:18:07 +0000
committerZac Medico <zmedico@gentoo.org>2007-02-10 22:18:07 +0000
commit73487af3929c674e2a60ad878da6a5e7c5d70fa3 (patch)
tree72c27a05ca0ffa371c810ebde602591bb5b0c90a
parent1d59bc7584d23ed1c18680bf1ed4e6abd91bfa82 (diff)
downloadportage-73487af3929c674e2a60ad878da6a5e7c5d70fa3.tar.gz
portage-73487af3929c674e2a60ad878da6a5e7c5d70fa3.tar.bz2
portage-73487af3929c674e2a60ad878da6a5e7c5d70fa3.zip
Make xterm titles work even when color is disabled. Thanks to Joachim Kaeber <joachim.kaeber@web.de> in bug #166255.
svn path=/main/trunk/; revision=5950
-rw-r--r--pym/portage/output.py2
1 files changed, 1 insertions, 1 deletions
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: