mirror of
https://github.com/anomalyco/opentui.git
synced 2026-04-24 20:45:56 +03:00
[GH-ISSUE #509] Destroy of renderer doesn't call disableMouse #899
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#899
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 @Arilas on GitHub (Jan 10, 2026).
Original GitHub issue: https://github.com/anomalyco/opentui/issues/509
I'm writing the TUI that finishes with a clear log of what is done, so I have a TUI that after destroying is logging everything important to a stdout/stderr.
The error that I have is that after I destroy the renderer, mouse events are leaking into input of the next command. After investigate I found that
destroyandfinalizeDestroydoesn't calldisableMouse, so mouse escape sequence is not sent.@endernoke commented on GitHub (Jan 17, 2026):
I encountered an related issue while running tests.
Some tests produce a lot of garbage text in the shell after exiting, which came from mouse position reporting.
After investigation, I found the issue to be as follows:
TestRendererdoes not setup the terminal to prevent outputting to the terminalrenderer._terminalIsSetupis falseAlso in this case, the usemouse state between the typescript and native layers are out-of-sync, since zig
state.mousedefaults to true but is never updated via setupterminal