Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #240177

Re: A bug in Vim, in Mate Terminal or in Debian 11?

From David Wright <deblis@lionunicorn.co.uk>
Newsgroups linux.debian.user
Subject Re: A bug in Vim, in Mate Terminal or in Debian 11?
Date 2021-09-19 22:20 +0200
Message-ID <CZbs5-3eF-1@gated-at.bofh.it> (permalink)
References (5 earlier) <CZa2Z-2fG-1@gated-at.bofh.it> <CZaFI-2HO-21@gated-at.bofh.it> <CZaFI-2HO-19@gated-at.bofh.it> <CZaPo-2Lk-9@gated-at.bofh.it> <CZb8J-2S4-1@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Sun 19 Sep 2021 at 21:51:57 (+0200), tomas@tuxteam.de wrote:
> On Sun, Sep 19, 2021 at 02:36:14PM -0500, David Wright wrote:
> > On Sun 19 Sep 2021 at 21:27:49 (+0200), tomas@tuxteam.de wrote:
> > > On Sun, Sep 19, 2021 at 04:21:56PM -0300, Dedeco Balaco wrote:
> > > > Em 19/09/2021 15:48, tomas@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
> 
> [1] https://stackoverflow.com/questions/3232655/can-i-get-terminal-title-or-otherwise-restore-old-one

Yes, that link is mentioned in the first reference. So that depends
on how closely Mate terminal (which I've never seen) follows xterm.
OTOH xprop depends on the X server, I presume.

So, for the present, try the stack method first, then xprop if it
doesn't work. Whether stretch's method is still of interest to you, IDK.

Cheers,
David.

Back to linux.debian.user | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

A bug in Vim, in Mate Terminal or in Debian 11? Dedeco Balaco <dedeco.balaco@yahoo.com> - 2021-09-19 03:20 +0200
  Re: A bug in Vim, in Mate Terminal or in Debian 11? Jeremy Hendricks <jwh1981@gmail.com> - 2021-09-19 03:30 +0200
    Re: A bug in Vim, in Mate Terminal or in Debian 11? Jeremy Hendricks <jwh1981@gmail.com> - 2021-09-19 03:50 +0200
  Re: A bug in Vim, in Mate Terminal or in Debian 11? Greg Wooledge <greg@wooledge.org> - 2021-09-19 04:30 +0200
    Re: A bug in Vim, in Mate Terminal or in Debian 11? <tomas@tuxteam.de> - 2021-09-19 09:50 +0200
      Re: A bug in Vim, in Mate Terminal or in Debian 11? Greg Wooledge <greg@wooledge.org> - 2021-09-19 16:00 +0200
        Re: A bug in Vim, in Mate Terminal or in Debian 11? <tomas@tuxteam.de> - 2021-09-19 17:20 +0200
          Re: A bug in Vim, in Mate Terminal or in Debian 11? Greg Wooledge <greg@wooledge.org> - 2021-09-19 18:00 +0200
      Re: A bug in Vim, in Mate Terminal or in Debian 11? <tomas@tuxteam.de> - 2021-09-19 19:50 +0200
        Re: A bug in Vim, in Mate Terminal or in Debian 11? <tomas@tuxteam.de> - 2021-09-19 20:50 +0200
          Re: A bug in Vim, in Mate Terminal or in Debian 11? <tomas@tuxteam.de> - 2021-09-19 21:30 +0200
            Re: A bug in Vim, in Mate Terminal or in Debian 11? David Wright <deblis@lionunicorn.co.uk> - 2021-09-19 21:40 +0200
              Re: A bug in Vim, in Mate Terminal or in Debian 11? <tomas@tuxteam.de> - 2021-09-19 22:00 +0200
                Re: A bug in Vim, in Mate Terminal or in Debian 11? David Wright <deblis@lionunicorn.co.uk> - 2021-09-19 22:20 +0200
            Re: A bug in Vim, in Mate Terminal or in Debian 11? <tomas@tuxteam.de> - 2021-09-19 22:10 +0200
    Re: A bug in Vim, in Mate Terminal or in Debian 11? Greg Wooledge <greg@wooledge.org> - 2021-09-19 16:00 +0200
  Re: A bug in Vim, in Mate Terminal or in Debian 11? Mark Neyhart <Mark.Neyhart@akleg.gov> - 2021-09-20 22:40 +0200
    Re: A bug in Vim, in Mate Terminal or in Debian 11? Dedeco Balaco <dedeco.balaco@yahoo.com> - 2021-09-20 22:40 +0200

csiph-web