[GH-ISSUE #35] Cursor doesn't reappear consistently #9

Closed
opened 2026-03-02 23:43:48 +03:00 by kerem · 10 comments
Owner

Originally created by @fezproof on GitHub (Aug 18, 2025).
Original GitHub issue: https://github.com/anomalyco/opentui/issues/35

Sometimes when quitting the examples, my cursor doesn't reappear in the terminal.

Originally created by @fezproof on GitHub (Aug 18, 2025). Original GitHub issue: https://github.com/anomalyco/opentui/issues/35 Sometimes when quitting the examples, my cursor doesn't reappear in the terminal.
kerem 2026-03-02 23:43:48 +03:00
  • closed this issue
  • added the
    core
    bug
    labels
Author
Owner

@kommander commented on GitHub (Aug 18, 2025):

Yeah I noticed that recently as well, some regression when I introduced split mode. I'll check.

<!-- gh-comment-id:3195847374 --> @kommander commented on GitHub (Aug 18, 2025): Yeah I noticed that recently as well, some regression when I introduced split mode. I'll check.
Author
Owner

@kommander commented on GitHub (Aug 19, 2025):

Latest changes on main should improve that. Let me know if still happens. EDIT: Still seems odd in Ghostty for some reason. Checking some more.

<!-- gh-comment-id:3199952316 --> @kommander commented on GitHub (Aug 19, 2025): Latest changes on main should improve that. Let me know if still happens. EDIT: Still seems odd in Ghostty for some reason. Checking some more.
Author
Owner

@kommander commented on GitHub (Aug 19, 2025):

Should be improved in the latest version.

<!-- gh-comment-id:3201280837 --> @kommander commented on GitHub (Aug 19, 2025): Should be improved in the latest version.
Author
Owner

@niicojs commented on GitHub (Aug 21, 2025):

In windows, the state after exit is odd too. Maybe we should do a clear screen after exit? Or should I do that userland?

<!-- gh-comment-id:3211076005 --> @niicojs commented on GitHub (Aug 21, 2025): In windows, the state after exit is odd too. Maybe we should do a clear screen after exit? Or should I do that userland?
Author
Owner

@kommander commented on GitHub (Aug 23, 2025):

Yeah, it's unstable still. Exiting from alternate screen should be okay though, which is the default. Are you setting useAlternateScreen to false explicitly? Which terminal are you using? What is the weird state you get?

<!-- gh-comment-id:3216734694 --> @kommander commented on GitHub (Aug 23, 2025): Yeah, it's unstable still. Exiting from alternate screen should be okay though, which is the default. Are you setting useAlternateScreen to false explicitly? Which terminal are you using? What is the weird state you get?
Author
Owner

@niicojs commented on GitHub (Aug 24, 2025):

Thanks for the answer.
I'm using Windows Terminal (1.22.12111). I'm using powershell + starship but same thing happens with just powershell.

The state is that the screen displays the state before launching my app, but the cursor is at 0,0 thus I'm writing "on top" of the previous state.

I'm using opentui/react.

Edit: same thing with opentui/solid

<!-- gh-comment-id:3218198155 --> @niicojs commented on GitHub (Aug 24, 2025): Thanks for the answer. I'm using Windows Terminal (1.22.12111). I'm using powershell + starship but same thing happens with just powershell. The state is that the screen displays the state before launching my app, but the cursor is at 0,0 thus I'm writing "on top" of the previous state. I'm using opentui/react. Edit: same thing with opentui/solid
Author
Owner

@kommander commented on GitHub (Aug 24, 2025):

Ah thanks for the clarification. I think I can easily fix that in the shutdown sequence. I'll check.

<!-- gh-comment-id:3218261470 --> @kommander commented on GitHub (Aug 24, 2025): Ah thanks for the clarification. I think I can easily fix that in the shutdown sequence. I'll check.
Author
Owner

@kommander commented on GitHub (Aug 24, 2025):

@niicojs could be fixed in v0.1.9 now. Let me know.

<!-- gh-comment-id:3218375022 --> @kommander commented on GitHub (Aug 24, 2025): @niicojs could be fixed in v0.1.9 now. Let me know.
Author
Owner

@niicojs commented on GitHub (Aug 25, 2025):

yes, fixed!
thanks
🚀

<!-- gh-comment-id:3218913607 --> @niicojs commented on GitHub (Aug 25, 2025): yes, fixed! thanks 🚀
Author
Owner

@kommander commented on GitHub (Aug 25, 2025):

I'll close this for now then, please open a new issue should it regress.

<!-- gh-comment-id:3220422026 --> @kommander commented on GitHub (Aug 25, 2025): I'll close this for now then, please open a new issue should it regress.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/opentui#9
No description provided.