Opened 3 years ago

Closed 3 years ago

Last modified 3 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, 3 years ago

Just to add another data point:

I've noticed the same while running Midnight Commander (mc). You better keep your mouse pointer away from that Terminal window running mc, because otherwise, that "mouse movement sequence" mentioned by tobik 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)

Version 0, edited 3 years ago by bipolar (next)

comment:3 by korli, 3 years ago

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

comment:4 by korli, 3 years ago

Resolution: fixed
Status: assignedclosed

merged in hrev56003

comment:5 by korli, 3 years ago

thanks for the report, easy to reproduce!

comment:6 by tobik, 3 years ago

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

comment:7 by bipolar, 3 years ago

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

Note: See TracTickets for help on using tickets.