vtm: Mouse wheel is not supported in application mouse tracking modes
When a window got focus in application mouse tracking modes, it should also allow mouse wheel events.
To reproduce simply run a CLI app, such as htop
, or vim
and try using mouse wheel. It does nothing.
For more info on mouse wheel support, see: https://invisible-island.net/xterm/ctlseqs/ctlseqs.html#h3-Wheel-mice
Tested terminals: xterm, gnome-terminal, kitty Tested terminal widgets: vte, TerminalCtrl (Ultimate++ terminal widget) Tested platform: Linux 5.10, Gnome 3.38.
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Comments: 19
Everything here seems to be done and works fine, but if something is wrong, I’ll reopen this issue.
@o-sdn-o ,
As you can see, not all terminals and apps implement the sequences and follow the rules strictly. 😃 In an ideal world, unrecognized or irregular sequences would be ignored by all terminal emulators or apps. In practice, however, they simply breaks some of them; even valid but unrecognized sequences break them (e.g initial implementation of DEC’s
DCS
sequences by some popular apps caused a lot of trouble some time ago.). And it is hard to change established behavior. Still, IME, the sane route to take would be to concieve a private sequence and corresponding mode, if you really need one. The other factor is both VT and CLI app developers would be reluctant to introduce a new sequence and mode., for good reasons.I will have the time to check the release tomorrow, and provide more feedback.
Cheers
NASA’s Mars 2020 Perseverance Rover Landing live broadcast begins 🤞
vim
(:set mouse=a) andhtop
requestCSI ? 1000 h SET_VT200_MOUSE
Currently only
CSI ? 1006 h SET_SGR_EXT_MODE_MOUSE
protocol is supported, I started making support for 1000-1003 modes as well as 1006 😊