mirror of
https://github.com/anomalyco/opentui.git
synced 2026-04-25 04:55:58 +03:00
[GH-ISSUE #661] Mouse moves translate to mouse scrolling under URxvt #178
Labels
No labels
bug
core
documentation
feature
good first issue
help wanted
pull-request
question
react
solid
tmux
windows
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/opentui#178
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @demostanis on GitHub (Feb 10, 2026).
Original GitHub issue: https://github.com/anomalyco/opentui/issues/661
Originally assigned to: @simonklee on GitHub.
when using the rxvt-unicode terminal, when i scroll and move my mouse a little bit, the whole screen moves in unpredictable ways:
https://github.com/user-attachments/assets/f9dc0436-9ffa-47f9-ad68-6cfa88036842
if needed, my whole setup is at https://github.com/demostanis/demolinux,
but ive been able to reproduce with the latest rxvt-unicode in Arch repos with an empty .Xresources
@simonklee commented on GitHub (Feb 10, 2026):
I think we're missing to parse the motion/drag detection and because of it misclassifying things as down events causing the behavior you're seeing.
@demostanis commented on GitHub (Feb 11, 2026):
@simonklee thank you for trying to figure out the issue, however that didn't fix it
(to test out i git clone'd the opencode repo and ran bun install && bun dev)
@simonklee commented on GitHub (Feb 11, 2026):
I'm not sure we cut a release yet.
@kommander commented on GitHub (Feb 11, 2026):
@demostanis it's only on the beta branch currently. You can test with
bunx opencode-ai@beta.@demostanis commented on GitHub (Feb 11, 2026):
@kommander did not resolve it either :/
@simonklee commented on GitHub (Feb 11, 2026):
I’ll have another look and try to reproduce it locally with XWayland.
On Wed, Feb 11, 2026, at 14:54, demostanis wrote:
@demostanis commented on GitHub (Feb 16, 2026):
@simonklee did you try to reproduce it locally? do you need help?
@simonklee commented on GitHub (Feb 16, 2026):
Thanks - I might send you script later today tbh. I created a minimal thing that just captures the mouse events before parsing (but its on my desktop at home).
I tried to reproduce on arch + sway + Xwayland and my hypothesis for what was going wrong didn't turn out to be correct, but i found some other things. These are sitting in a PR atm but should be merged soon #679.
@demostanis commented on GitHub (Feb 16, 2026):
i tried asking gemini 3 flash to debug the issue and he was able to solve the problem:
https://opncd.ai/share/Lg0TWAsu
(i recorded opencode with
script, and told gemini to read the raw output with the opencode and opentui sources)i however don't know which specific changed resolved the issue concretly...
@simonklee commented on GitHub (Feb 21, 2026):
Hey - thanks for sharing the fix. I implementing something that may solve your issue, but i haven't looked if has been released in OpenCode yet. It's part of 0.1.80 OpenTUI version.
github.com/anomalyco/opentui@5aba383ffdWhen i get the time i'll try to look at Gemini fixes. Also, if you don't mind. I'd love to get the data from your
scriptsession if you still have it around.