On Sun, Sep 19, 2021 at 02:36:14PM -0500, David Wright wrote: > On Sun 19 Sep 2021 at 21:27:49 (+0200), to...@tuxteam.de wrote: > > On Sun, Sep 19, 2021 at 04:21:56PM -0300, Dedeco Balaco wrote: > > > Em 19/09/2021 15:48, to...@tuxteam.de escreveu: > > > > On Sun, Sep 19, 2021 at 03:06:28PM -0300, Dedeco Balaco wrote: > > > > [...] > > > > > Fine. I understand that you say that i could change my PS1 to always > > > reset the title. > > > > Specifically this is desirable whenever you want the title to show > > a "changing" property (in this case, for example, the current > > working directory). > > > > > But there is something this would hide, and which i did > > > not yet found an explanation for: sometimes, the default title is reset > > > after quitting vim, and sometimes not. > > > > That was my question: did you really observe vim resetting the title at > > program end, or was it something set dynamically by your shell (you > > said you changed your PS1 before the upgrade and the title was "fixed" > > at vim's exit, so there's evidence for both hypotheses :-) > > I did come across this: > > https://unix.stackexchange.com/questions/28500/is-it-possible-to-obtain-the-current-name-of-the-xterm-window > > There are quite a few tricks that xprop can help with, but there > just aren't enough rainy days here to find time to play with them.
Yes, I think I mentioned xprop elsethread. I don't yet know how to get the window id of the shell's parent, but hey. It seems xterm has even a better trick up its sleeve: it has a window title /stack/ [1] which you can control via escape sequences. Now it's getting really dangerous: I must resist looking into that -- I have a paying customer I've got to make happy :-D Cheers [1] https://stackoverflow.com/questions/3232655/can-i-get-terminal-title-or-otherwise-restore-old-one - t
signature.asc
Description: Digital signature