Bug#921537: gnome-terminal: mouse wheel scrolling sends 6 key up / key down escape sequences (kcuu1 / kcud1) in alternate screen
Vincent Lefevre
vincent at vinc17.net
Fri Feb 8 14:00:02 GMT 2019
On 2019-02-08 14:02:14 +0100, Egmont Koblinger wrote:
> > Yes, but my point is that the default should not be broken.
>
> One could argue that the wheels working in "less" (or any other
> similar app) is the expected behavior, and not working at all is the
> broken one...
No, that's just a feature. And what gnome-terminal does is buggy
in "less", and completely broken in Mutt and in GNU Screen + bash
(this can even freeze Screen, which doesn't seem to be able to
handle so many events at once!). What gnome-terminal assumes is
that <up> and <down> does scrolling. This may be the case with
some applications (possibly under some context only), but these
keys may also do something completely different. Thus this is a
wrong assumption.
Perhaps it should have generated scroll-backward (kR) and
scroll-forward (kF) keys, and provided a terminfo that defines
them. That way, this wouldn't mix up with the <up> and <down>
keys.
--
Vincent Lefèvre <vincent at vinc17.net> - Web: <https://www.vinc17.net/>
100% accessible validated (X)HTML - Blog: <https://www.vinc17.net/blog/>
Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)
More information about the pkg-gnome-maintainers
mailing list