diff options
author | Zac Medico <zmedico@gentoo.org> | 2010-01-29 18:47:30 +0000 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2010-01-29 18:47:30 +0000 |
commit | 942c2f3736f4babf7d0ad9c291a8b4252622f13b (patch) | |
tree | 12ca0cd1cfda0aa5198c13d3e89476c0d7f1daee | |
parent | 1c87a1062b500fc6565a9572348fe3ee9c2fc24e (diff) | |
download | portage-942c2f3736f4babf7d0ad9c291a8b4252622f13b.tar.gz portage-942c2f3736f4babf7d0ad9c291a8b4252622f13b.tar.bz2 portage-942c2f3736f4babf7d0ad9c291a8b4252622f13b.zip |
Tweak TERM usage in xtermTitleReset() to match that in xtermTitle().
(trunk r15190)
svn path=/main/branches/2.1.7/; revision=15245
-rw-r--r-- | pym/portage/output.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/pym/portage/output.py b/pym/portage/output.py index a4ca3a306..3fbb0c992 100644 --- a/pym/portage/output.py +++ b/pym/portage/output.py @@ -270,7 +270,10 @@ def xtermTitleReset(): if prompt_command == "": default_xterm_title = "" elif prompt_command is not None: - if dotitles and "TERM" in os.environ and sys.stderr.isatty(): + if dotitles and \ + 'TERM' in os.environ and \ + _legal_terms_re.match(os.environ['TERM']) is not None and \ + sys.stderr.isatty(): from portage.process import find_binary, spawn shell = os.environ.get("SHELL") if not shell or not os.access(shell, os.EX_OK): |