summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--pym/_emerge/main.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/pym/_emerge/main.py b/pym/_emerge/main.py
index 99ae3d138..34b6ef1c5 100644
--- a/pym/_emerge/main.py
+++ b/pym/_emerge/main.py
@@ -19,7 +19,7 @@ except ImportError:
import _emerge.help
import portage.xpak, commands, errno, re, time
-from portage.output import colorize, xtermTitleReset
+from portage.output import colorize, xtermTitle, xtermTitleReset
from portage.output import create_color_func
good = create_color_func("GOOD")
bad = create_color_func("BAD")
@@ -1033,6 +1033,8 @@ def emerge_main():
portdb = trees[settings["ROOT"]]["porttree"].dbapi
xterm_titles = "notitles" not in settings.features
+ if xterm_titles:
+ xtermTitle("emerge")
tmpcmdline = []
if "--ignore-default-opts" not in myopts:
@@ -1293,7 +1295,7 @@ def emerge_main():
"""This gets out final log message in before we quit."""
if "--pretend" not in myopts:
emergelog(xterm_titles, " *** terminating.")
- if "notitles" not in settings.features:
+ if xterm_titles:
xtermTitleReset()
portage.atexit_register(emergeexit)