Replies: 4 comments
-
To my knowledge there is no setting in xterm or gnome terminal to disable mouse tracking. Disabling mouse tracking on TE side unconditionally may break app side, if it expects mouse tracking to work. For these reasons I am not a big fan of disabling those. The issue with mosh you mentioned sounds more like we should implement NB: The PR you created stops the moue tracking at the event listeners, which is subpar. This is better done at level of registering mouse procotols (e.g. in |
Beta Was this translation helpful? Give feedback.
-
I agree with @jerch, if
|
Beta Was this translation helpful? Give feedback.
-
Sorry for the delayed reply. So consider that most of the time I don't want my scroll to affect the state of terminal apps at all. Some of the reasons:
Hmm actually this is the exact behaviour that I wanted. Some apps expect mouse to be working, but I don't want to use it (primarily because it is unintuitive/slow, especially the primary reason I ran those apps is to "hide latency" and/or keeping my session running when connected on trans-atlantic servers and/or unstable cellular connection). The are not limited to
Thank you for the suggestion! I'll have another look at it when I got the time and update the PR. Also by the way, many terminal apps such as macOS' built-in Terminal.app and iTerm2 provides an option to disable mouse reporting entirely. Still, xterm.js is integrated to VSCode and this singlehandedly made this terminal app very convenient. It would be very awesome to have this option here. 🙏 |
Beta Was this translation helpful? Give feedback.
-
@jamestut did you mean this setting? |
Beta Was this translation helpful? Give feedback.
-
xterm.js currently always send mouse events (especially wheel and drag/selection) to the application if the application requested it. xterm.js have the option to force selection, such as the
macOptionClickForcesSelection
option. However, it would be great to disable the mouse events reporting entirely as some us find it annoying.My primary use-case here is when I'm connecting using
mosh
: sincemosh
uses the alt buffer, scrolling on the xterm.js window will send those events tomosh
, andmosh
reinterpret these mouse events to the shell as up/down arrows, thus potentially undoing the commands that I've (partially) typed if I accidentally scrolled on the xterm.js window.I have a patch working and will make a pull request soon.
Beta Was this translation helpful? Give feedback.
All reactions