[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: vte-256color gives stray input bytes when enabling mouse events (sin
From: |
Thomas Dickey |
Subject: |
Re: vte-256color gives stray input bytes when enabling mouse events (since 20230514) |
Date: |
Sun, 15 Oct 2023 06:06:54 -0400 |
On Sun, Oct 15, 2023 at 11:41:05AM +0200, Benno Schulenberg wrote:
>
> Op 14-10-2023 om 20:28 schreef Thomas Dickey:
> > Patch #224 - 2007/2/11
> > * add control sequences for enabling/disabling focus in/out event
> > reporting (request by Bram Moolenaar).
> >
> > Turning the feature on in xterm's building block (xterm+sm+1006) which
> > happens to be used in the VTE description seemed safe enough.
>
> Does libvte actually support the focus-in/focus-out events and is it
> just xfce4-terminal that does not handle them?
It used to not generate them - checking now, I see that at some point
the developers got it working with "current" VTE.
> > well... updating the "xfce" entry and adding "xfce-256color" would be
> > helpful. But if it's still an old version of VTE, then there's not
> > much more that I can do.
>
> What is old? My xfce4-terminal is version 1.0.4, and links against
> libvte-2.91.so.0.6800.0. Version 0.68 of libvte does not seem old.
>
>
> On an up-to-date Manjaro system, xfce4-terminal is version 1.1.0 and
> links against libvte-2.91.so.0.7400.0. There the behavior is worse:
> when Alt+Tabbing to another window and back, nano acts as if ^O was
> typed, receiving the sequence 1B 5B 4F 1B 5B 49 twice. :/
I see (some). In vttest (menu 11.8.5), enabling the focus-event causes
the terminal to send ^[[I immediately. xterm doesn't do that.
Chalk that up to another in the long series where VTE developers
copied something without getting it right :-)
Reverting the change for vte-256color (noting the defect in VTE)
would help in this special case, but since VTE developers have decided
to squat on xterm-256color, (insisting that they have a right to do
this because of how well they copy), then you might want to make nano
recognize these special keys:
kxIN=\E[I,
kxOUT=\E[O,
> With the vte-2007, vte-2008, and vte-2012 terminal descriptions this
> and the other problem do not occur.
>
> Anyway, doing `infocmp -I -x vte-256color > nwvte`, editing that file
> to delete the "1004;" and renaming the description to "vte-256good",
> and then running `tic -x nwvte`, a new terminal description is created
> in ~/.terminfo/v/. (Mentioning this just to document for myself how
> to do this.) Using TERM=vte-256good, nano now of course works fine
> on an Xfce Terminal.
>
> Benno
>
--
Thomas E. Dickey <dickey@invisible-island.net>
https://invisible-island.net
signature.asc
Description: PGP signature