mirror of
https://github.com/anomalyco/opentui.git
synced 2026-04-25 13:06:00 +03:00
[PR #781] [CLOSED] Fix delayed split SGR mouse continuation #1559
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#1559
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?
📋 Pull Request Information
Original PR: https://github.com/anomalyco/opentui/pull/781
Author: @simonklee
Created: 3/5/2026
Status: ❌ Closed
Base:
main← Head:repro-main-leak📝 Commits (4)
b9bd096repro49a3f35fix: prevent delayed split SGR continuation from leakingc63c972comments412edb3Merge branch 'main' into repro-main-leak📊 Changes
5 files changed (+177 additions, -6 deletions)
View changed files
📝
packages/core/src/lib/parse.keypress.test.ts(+20 -0)📝
packages/core/src/lib/parse.keypress.ts(+14 -0)📝
packages/core/src/lib/stdin-buffer.test.ts(+29 -0)📝
packages/core/src/lib/stdin-buffer.ts(+80 -6)📝
packages/core/src/renderables/__tests__/Textarea.stress.test.ts(+34 -0)📄 Description
Mouse SGR sequences can arrive split across stdin reads. In the timing path where a lone
ESCis timeout-flushed and the rest of the sequence arrives later (for example[<35;20;5m), the continuation was treated as normal text and leaked into textareas.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.