[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

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



On Sun, Sep 19, 2021 at 09:58:17AM -0400, Greg Wooledge wrote:
> On Sun, Sep 19, 2021 at 09:44:58AM +0200, tomas@tuxteam.de wrote:

[...]

> Ah yes, good old Debian /etc/skel/.bashrc at work.  Presumably you
> mean this section:
> 
> # If this is an xterm set the title to user@host:dir
> case "$TERM" in
> xterm*|rxvt*)
>     PS1="\[\e]0;${debian_chroot:+($debian_chroot)}\u@\h: \w\a\]$PS1"
>     ;;

Most probably, so thanks for spotting it :)

> I don't know what mate-terminal uses for $TERM, or what it used back
> in stretch, but it's something the OP could research, I suppose.  If
> it changed from "xterm" to "mate-terminal" or something along those
> lines, that would certainly explain the change.

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.

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

Cheers

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

 - t

Attachment: signature.asc
Description: Digital signature


Reply to: