After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 137388 - dynamic title problem with vim
dynamic title problem with vim
Status: RESOLVED FIXED
Product: gnome-terminal
Classification: Core
Component: general
2.5.x
Other All
: Normal normal
: ---
Assigned To: GNOME Terminal Maintainers
GNOME Terminal Maintainers
Depends on: 141985
Blocks:
 
 
Reported: 2004-03-16 16:17 UTC by Franz Klammer
Modified: 2006-07-11 01:09 UTC
See Also:
GNOME target: ---
GNOME version: 2.9/2.10



Description Franz Klammer 2004-03-16 16:17:53 UTC
when i start end quit vim in gnome-terminal (currently i'm using 2.5.90)
the title changes to "Terminal - Terminal" afert start/quit vim again the
title is "Terminal - Terminal - Terminal" and so on ...

my setting is "before title" but this also happens with "afert title".

the version vim i'm using is: 6.2.263
Comment 1 Mariano Suárez-Alvarez 2004-05-06 05:42:25 UTC
I can reproduce this (provided I don't have a bash prompt setting the xterm
title...)

This is due to the fact that vim does not use the xterm control sequence to find
the title, but just looks at the wm title, which includes the `Terminal - '
prefix/suffix; when vim sets the title back when it exists, gnome-terminal
prepends/appends its prefix/suffix and we get what we get.

In fact, vim goes up the window tree looking for a window with a title set,
starting at the window pointed to by the env's WINDOWID, which in
gnome-terminals is the vte window. This could be worked around by having vte set
the WM_NAME/WM_ICON_NAME properties on its window, but that's really really
ugly. IMHO, vim should just use the xterm control sequence... 
Comment 2 Franz Klammer 2004-05-10 16:22:09 UTC
thanks for the answer - i changed the prompt-.variable in ~/.cshrc to
reset the window-title to nothing before displaying the prompt.

there are also the problem that after closing the midnight-commander 
the title will not set back to normal.

reseting the title to nothing resolves also that issue.
Comment 3 Mariano Suárez-Alvarez 2004-06-05 09:09:43 UTC
This gets fixed as soon as (something like) my second patch on bug 141985 hits vte.
Comment 4 bugreports 2006-06-11 10:23:19 UTC
I am having the same problem with gt 2.14.2 and vim 7 ... as this was and is working in multi-gnome-terminal I would claim this is a bug in gt - or do we want to fix the world again ?
Comment 5 Behdad Esfahbod 2006-07-11 01:09:52 UTC
Should be fixed already.  Reopen if it's not.