summaryrefslogtreecommitdiffstats
path: root/pym/output.py
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2007-06-09 03:51:51 +0000
committerZac Medico <zmedico@gentoo.org>2007-06-09 03:51:51 +0000
commit1c8002bcfb7d60398b491b1e49327de334402761 (patch)
treea53b8e30a74945c484c1398e49e59d1672624c00 /pym/output.py
parentfb742f7da315e7fd8605f7f56f1bf8a1f9fd211c (diff)
downloadportage-1c8002bcfb7d60398b491b1e49327de334402761.tar.gz
portage-1c8002bcfb7d60398b491b1e49327de334402761.tar.bz2
portage-1c8002bcfb7d60398b491b1e49327de334402761.zip
Only execute $PROMPT_COMMAND when appropriate. (trunk r6772)
svn path=/main/branches/2.1.2/; revision=6773
Diffstat (limited to 'pym/output.py')
-rw-r--r--pym/output.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/pym/output.py b/pym/output.py
index 2327c91aa..bd9c474e6 100644
--- a/pym/output.py
+++ b/pym/output.py
@@ -194,7 +194,8 @@ def xtermTitleReset():
if prompt_command == "":
default_xterm_title = ""
elif prompt_command is not None:
- os.system(prompt_command)
+ if dotitles and "TERM" in os.environ and sys.stderr.isatty():
+ os.system(prompt_command)
return
else:
pwd = os.getenv('PWD','')