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
Wed Apr 3 12:42:50 BST 2019


On 2019-02-07 13:43:20 +0100, Egmont Koblinger wrote:
> You can disable this behavior with:
> 
>   printf '\e[?1007l'

This has no effect when using GNU Screen. For instance:

$ printf '\e[?1007l' ; screen sleep 20

then when using the mouse wheel:

^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[A^[[A^[[A^[[A^[[A^[[A^[[A^[[A^[[A^[[A^[[A^[[A^[[A^[[A^[[A^[[A^[[A^[[A^[[A^[[A^[[A^[[A^[[A^[[A

There isn't such an issue with xterm. It is not Screen that enables
Alternate Scroll Mode, otherwise one would get the same behavior in
xterm.

I suspect that GNOME Terminal "forgets" this setting under some
conditions.

Moreover, it is not possible to use "printf '\e[?1007l'" easily when
using "--" + some arbitrary command (whose arguments may contain
spaces and other special characters, so that using "sh -c ..." to
execute the printf first would be complex and error prone).

-- 
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