Red Hat Bugzilla – Bug 129152
window titles no longer change when su'd or ssh'd
Last modified: 2014-03-16 22:47:05 EDT
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7)
Description of problem:
As of the latest gnome-terminal update my window titles no longer
change if I "su -" to another user, ssh to a remote server or use
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Open a terminal window
2. ssh to a remote FC server
Actual Results: Window title will still reflect the last local shell
Expected Results: The window title should change to reflect the
command prompt on the remote system.
This broke when gnome-terminal went from 2.6.x to 2.7.x.
Confirming this bug in latest rawhide (08/06/2004) using
gnome-terminal-2.7.3-1. This is deemed not to be an ncurses issue,
but rather as Joshua suggests a regression from 2.6.x -> 2.7.x. I
believe the problem is just a basic terminal window setting. Starting
a new tab, ssh, screen ... all fail to set the gnome-terminal title.
xterm does not exhibit this problem.
This has to do with the change made from bug 122815, where
gnome-terminal gets TERM=gnome now instead of TERM=xterm.
/etc/bashrc only sets the title on terminals that have TERM types that
start with xterm.
Aha! Setting my TERM type in my personal .bashrc fixes it. Thank the
gods; it was getting annoying not being able to tell my windows apart
by title. :)
I'm not so sure this is a good change though. Not only does it break
the /etc/bashrc script on older servers (think ssh-ing into a remote
server you don't have control over) but it also seems to break
terminal emulation on older systems too. I was having weird isues with
the delete key not working right when running vim over ssh to my dev
server (it runs FC1) and changing my term to "xterm" has cured that too.
*** This bug has been marked as a duplicate of 129115 ***
Changed to 'CLOSED' state since 'RESOLVED' has been deprecated.