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


Groups > linux.debian.user > #240162

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

From Greg Wooledge <greg@wooledge.org>
Newsgroups linux.debian.user
Subject Re: A bug in Vim, in Mate Terminal or in Debian 11?
Date 2021-09-19 18:00 +0200
Message-ID <CZ7ot-zp-1@gated-at.bofh.it> (permalink)
References (1 earlier) <CYTER-Hm-1@gated-at.bofh.it> <CYUKB-1oH-1@gated-at.bofh.it> <CYZKi-4ry-13@gated-at.bofh.it> <CZ5wm-7TD-9@gated-at.bofh.it> <CZ6LL-mG-3@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Sun, Sep 19, 2021 at 05:13:34PM +0200, tomas@tuxteam.de wrote:
> I can't imagine MATE terminal to implement its own escaping machinery.
> They'll probably copy that of the Xterm, to stay compatible (although
> these days you never know).
> 
> So perhaps the OP gets away with pretending he has an xterm.

That's not would I would suggest.

> @Dedeco: what happens if you say "export TERM=xterm", start a new
> shell [1] (i.e. you say "bash") and then start vim?

It would be more useful to know what $TERM is *currently* set to.
(And also what it was set to by a stretch mate-terminal, but that
may not be important now, or may not be easily discoverable, unless
there's another reader out there running mate-terminal on stretch
who can test it for us.)

> [1] I don't know when PS1 gets refreshed, so being carefully here

Assuming the OP is using Debian's provided .bashrc file (and other
shell dotfiles), PS1 is changed when .bashrc is read, which normally
means when bash is started as an interactive, non-login shell.

Running "bash" would do that.  I prefer "exec bash" because it gives
a cleaner starting point.

But... changing the TERM variable isn't the correct solution.  If
mate-terminal sets TERM to something like "mate-terminal" (speculation),
then there must be a good reason for it.  Maybe they've diverged enough
from xterm that setting TERM to xterm would break something.

If you want the title-changing behavior of bash in a terminal whose $TERM
doesn't begin with xterm or rxvt, it would be better to change .bashrc
and simply allow that PS1 addition to happen on other $TERM values as
well.

Once we know what $TERM is, we can advise.

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