mirror of
https://github.com/anomalyco/opentui.git
synced 2026-04-25 04:55:58 +03:00
[PR #441] [MERGED] fix: hide terminal cursor when showCursor is false #537
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#537
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/441
Author: @remorses
Created: 12/24/2025
Status: ✅ Merged
Merged: 12/30/2025
Merged by: @kommander
Base:
main← Head:fix-show-cursor-visibility📝 Commits (2)
13167e7fix: hide terminal cursor when showCursor changes to false6bafc3fadd tests📊 Changes
6 files changed (+411 additions, -0 deletions)
View changed files
📝
packages/core/src/renderables/EditBufferRenderable.ts(+3 -0)📝
packages/core/src/renderer.ts(+4 -0)📝
packages/core/src/zig-structs.ts(+12 -0)📝
packages/core/src/zig.ts(+36 -0)📝
packages/core/src/zig/lib.zig(+36 -0)➕
packages/solid/tests/cursor-behavior.test.tsx(+320 -0)📄 Description
When
showCursorprop changes fromtruetofalse, the cursor was still visible becauserenderCursorjust returned early without hiding the cursor.This fix calls
setCursorPosition(0, 0, false)to hide the terminal cursor whenshowCursoris false or the component is not focused.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.