gnome-terminal with screen interprets mouse wheel events as up/down
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
gnome-terminal (Ubuntu) |
Opinion
|
Undecided
|
Unassigned |
Bug Description
Bug is based on my last comments from https:/
Environment:
Ubuntu 14.04.5 LTS
gnome-terminal 3.6.2
libvte 0.34.9
screen 4.1.0
The problem is:
1. screen is running from gnome-terminal
2. mouse wheel scrolling generates up/down events which ends up as bash history scrolling instead of gnome-terminal history scrolling
3. if run cat command, then mouse wheel ends up as esc-keys: ^[[A^[[
Gnome-terminal's option about alternate screen is not working anymore in trusty ubuntu release, but it has been working in precise release.
As I said in bug 106995: gnome-terminal's option about alternatre screen doesn't do anything with vte, so it's useless, but if I understand this patch in vte right it set alternate screen option true value on initialization automatically.
commit 9f8c1b88dcd880c
Author: Christian Persch <email address hidden>
Date: Mon Sep 30 23:00:09 2013 +0200
gnome-terminal calls vte_terminal_reset in terminal-window.c which set alternate screen flag to true, it's strange that it doesn't work.
I suspect that problem is in gnome-terminal, because this problem doesn't exists in screen run from xterm or rxvt terminal.
affects: | screen (Ubuntu) → gnome-terminal (Ubuntu) |
description: | updated |
gnome-terminal / vte changed its behavior around that time. There was also quite a bit of confusion caused by a downstream ubuntu patch and removal also around that time.
I'm not sure what's 14.04's behavior, but in newer Ubuntus (e.g. 16.04) you can disable alternate screen scrolling with the DECRESET 1007 escape sequence, that is:
echo -ne '\e[?1007l'
Maybe it already works in 14.04, please try it.