when using VT mouse mode, click + drag mouse to top of screen scrolls terminal history #15417

Open
opened 2026-01-31 04:38:02 +00:00 by claunia · 2 comments
Owner

Originally created by @LuanVSO on GitHub (Oct 2, 2021).

Windows Terminal version (or Windows build number)

1.11.2421.0

Other Software

wsl vim (using sgr mouse mode)

Steps to reproduce

launch vim with mouse mode enable
click and drag the mouse to top of screen

Expected Behavior

vim receives mouse events

Actual Behavior

vim receives mouse events and terminal history scrolls upward

https://user-images.githubusercontent.com/43626415/135701637-10ac56f1-890b-4cd1-b569-7137d2b1abea.mp4

Originally created by @LuanVSO on GitHub (Oct 2, 2021). ### Windows Terminal version (or Windows build number) 1.11.2421.0 ### Other Software wsl vim (using sgr mouse mode) ### Steps to reproduce launch vim with mouse mode enable click and drag the mouse to top of screen ### Expected Behavior vim receives mouse events ### Actual Behavior vim receives mouse events and terminal history scrolls upward https://user-images.githubusercontent.com/43626415/135701637-10ac56f1-890b-4cd1-b569-7137d2b1abea.mp4
Author
Owner

@zadjii-msft commented on GitHub (Oct 4, 2021):

Huh. I suppose, "big picture", this will be fixed when we actually add #381. We should be in the alt buffer, which won't have a scrollback at all. But there's also a decent argument that we shouldn't scroll like that when VT mouse mode is enabled at all.

@zadjii-msft commented on GitHub (Oct 4, 2021): Huh. I suppose, "big picture", this will be fixed when we actually add #381. We _should_ be in the alt buffer, which won't have a scrollback at all. But there's also a decent argument that we shouldn't scroll like that when VT mouse mode is enabled at all.
Author
Owner

@zadjii-msft commented on GitHub (Oct 26, 2021):

Team discussion: we agree, "there's also a decent argument that we shouldn't scroll like that when VT mouse mode is enabled at all." Even further, we probably shouldn't scroll like that if there's no selection. Not sure which path is easier to implement.

@zadjii-msft commented on GitHub (Oct 26, 2021): Team discussion: we agree, _"there's also a decent argument that we shouldn't scroll like that when VT mouse mode is enabled at all."_ Even further, we probably shouldn't scroll like that if there's no selection. Not sure which path is easier to implement.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#15417