mirror of
https://github.com/anomalyco/opentui.git
synced 2026-04-25 04:55:58 +03:00
[GH-ISSUE #283] bug: Does not switch to correct screen after suspend #842
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#842
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 @veracioux on GitHub (Nov 8, 2025).
Original GitHub issue: https://github.com/anomalyco/opentui/issues/283
Reproducible with opencode:
https://github.com/user-attachments/assets/58ed1ff4-9efa-47c7-8e41-02b7c165a015
Cause:
Editors like neovim, emacs, etc switch to the alternate screen. If this screen doesn't match the configured screen of the CliRenderer (determined by
useAlternateScreen), the terminal clearing commands in performShutdownSequence are applied to the wrong screen.Fix:
Ensure the correct screen (determined by
useAlternateScreen) before starting the render loop, by emitting the appropriate ANSI sequences.Related to https://github.com/sst/opencode/issues/3648.