Comment 27 for bug 1197726

Revision history for this message
In , Ankur (ankur-redhat-bugs) wrote :

(In reply to Carl-Johan Schenström from comment #2)
> \033_ sets the hardstatus, while \033k sets the caption, i.e. the title, on
> the screen windows. I'm fairly sure that captions are what we're after in
> this case.

I haven't been able to find a complete list to differentiate between 033]0; and 033k. 033]0; seems to be used to set the title of the terminal emulator window, as I found in quite a few posts:

http://mg.pov.lt/blog/bash-prompt.html
http://www.kirsle.net/blog/kirsle/set-window-title-in-bash
http://hints.macworld.com/article.php?story=20031015173932306

Using 033k sets the gnome-terminal title as:

[screen 0: user@host:pwd]

while 033]0; sets it as:

[screen 0: bash] user@host:pwd

and using a hardstatus line with 033]0; sets the hardstatus line as "bash" while keeping setting the xterm window title as user@host:pwd.

The previous behaviour seems to fit better IMO. I'm unclear on what the issue that prompted this change is. Can you please clarify?

Thanks,
Warm regards,
Ankur