http://bugzilla.novell.com/show_bug.cgi?id=535074 User poletti.marco@gmail.com added comment http://bugzilla.novell.com/show_bug.cgi?id=535074#c3 --- Comment #3 from Marco Poletti <poletti.marco@gmail.com> 2009-10-19 13:09:59 CEST --- Created an attachment (id=323045) --> (http://bugzilla.novell.com/attachment.cgi?id=323045) File /etc/bash/bashrc from Sabajon linux (In reply to comment #2)
This depends very much on the terminal. If you really want to implement this, you'll have to compare $TERM to some known types. If the type matches, you can send some escape sequence that changes the window title to stdout.
For xterm, it's ESC]0;<string>^G (ESC = \033 ^G = \007)
This will change the title to <string>, but there is no simple way to restore the title to the old value (what does emerge do when it's done?).
emerge does nothing :-) (itself). The trick to restore a meaningful title is done in /etc/bash/bashrc, setting PROMPT_COMMAND to change the shell title (with escapes based on the shell type) to something like "user@hostname: ~/Desktop". I attach the file /etc/bash/bashrc used by Sabajon (a flavour of Gentoo). -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.