Opened 2 years ago

Closed 2 years ago

Last modified 2 years ago

#17684 closed bug (fixed)

[Terminal] Mouse position reporting not working

Reported by: tobik Owned by: korli
Priority: normal Milestone: R1/beta4
Component: Applications/Terminal Version: R1/Development
Keywords: Cc:
Blocked By: Blocking:
Platform: All

Description

Mouse support in Terminal seems to be broken when mouse position reporting is enabled. If I move the mouse around I see parts of control sequences printed out and the programs do not react correctly to them:

S;024;001MS;029;004MS;031;007MS;032;009MS;035;013M

This works correctly in Konsole but it would be nice if it could work in Terminal too. I tested this with enabled mouse support in Kakoune and tmux.

This was on hrev55993 x86_gcc2.

To reproduce:

echo set -g mouse on >tmux.conf
tmux -f tmux.conf

Then move the mouse.

FYI, Kakoune sends these control sequences to enable mouse position reporting:

\033[?1006h // force SGR mode
\033[?1000h // enable mouse
\033[?1002h // force enable report mouse position

Change History (7)

comment:1 by bipolar, 2 years ago

Just to add another data point:

I've noticed a similar thing while running Midnight Commander (mc). You better keep your mouse pointer away from that Terminal window running mc, because otherwise, a "mouse movement sequence" (similar to what tobik describes) ends ups messing up mc's "sub-shell" command line at the bottom.

I haven't tried mc on other terminals, only on Haiku's. This was on hrev55181+66 (beta3, x86_64), and on hrev55991 (nightly, x86_64).

Example of the string I get while slowly moving the cursor from the top left row towards the right: 01;001M02;001M03;001M04;001M

Last edited 2 years ago by bipolar (previous) (diff)

comment:3 by korli, 2 years ago

Milestone: UnscheduledR1/beta4
Owner: changed from jackburton to korli
Status: newassigned

comment:4 by korli, 2 years ago

Resolution: fixed
Status: assignedclosed

merged in hrev56003

comment:5 by korli, 2 years ago

thanks for the report, easy to reproduce!

comment:6 by tobik, 2 years ago

Thank you for fixing this! It works fine now. :-)

comment:7 by bipolar, 2 years ago

Also works fine in mc now! Thanks a lot Korli!

Note: See TracTickets for help on using tickets.