From 25b8d5924494e0937df07c8510d8b30cf7488686 Mon Sep 17 00:00:00 2001 From: Arfrever Frehtes Taifersar Arahesis Date: Tue, 4 Aug 2009 01:24:48 +0000 Subject: [PATCH] Set "emerge" xterm title at the beginning of running emerge. svn path=/main/trunk/; revision=13887 --- pym/_emerge/main.py | 6 ++++-- 1 file 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) -- 2.26.2