summaryrefslogtreecommitdiffstats
path: root/pym
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2007-02-12 07:13:27 +0000
committerZac Medico <zmedico@gentoo.org>2007-02-12 07:13:27 +0000
commitcc3b4d8e79e5e1dba7abcd08462dc6a027b34366 (patch)
treeddc4ffd1de42029a427b88e495290d6bc0944600 /pym
parenteb537b378cff012d58bdb3f16eb9de4fff1a8bf9 (diff)
downloadportage-cc3b4d8e79e5e1dba7abcd08462dc6a027b34366.tar.gz
portage-cc3b4d8e79e5e1dba7abcd08462dc6a027b34366.tar.bz2
portage-cc3b4d8e79e5e1dba7abcd08462dc6a027b34366.zip
Make xterm titles work even when color is disabled. Thanks to Joachim Kaeber <joachim.kaeber@web.de> in bug #166255. (trunk r5949:5950)
svn path=/main/branches/2.1.2/; revision=5958
Diffstat (limited to 'pym')
-rw-r--r--pym/output.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pym/output.py b/pym/output.py
index 62ec975fe..660f06999 100644
--- a/pym/output.py
+++ b/pym/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: