Skip to content

Conversation

@snapxv
Copy link

@snapxv snapxv commented Jan 2, 2026

Problem: When users press CTRL+C in OpenCode TUI, the application exits without properly disabling mouse causes the terminal to continue tracking modes. This displaying SGR mouse tracking codes as ASCII strings when moving the mouse.

Solution: We now send mouse tracking disable escape sequences before destroying the renderer, covering all common mouse tracking protocols: basic, button events, SGR, SGR 1006, URXVT, and all motion tracking modes.

When users press CTRL+C in OpenCode TUI, the application exits without
properly disabling mouse causes the terminal to
continue tracking modes. This displaying SGR mouse tracking codes as ASCII strings when moving
the mouse.

This fix sends comprehensive mouse tracking disable escape sequences
before destroying the renderer, covering all common mouse tracking
protocols: basic, button events, SGR, SGR 1006, URXVT, and all motion
tracking modes.
@rekram1-node rekram1-node requested a review from kommander January 2, 2026 22:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant