Skip to content

Conversation

@remorses
Copy link
Contributor

When showCursor prop changes from true to false, the cursor was still visible because renderCursor just returned early without hiding the cursor.

This fix calls setCursorPosition(0, 0, false) to hide the terminal cursor when showCursor is false or the component is not focused.

@remorses remorses force-pushed the fix-show-cursor-visibility branch from 23b38e5 to 13167e7 Compare December 24, 2025 17:13
@remorses remorses marked this pull request as ready for review December 24, 2025 20:00
Copilot AI review requested due to automatic review settings December 24, 2025 20:00
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR fixes a bug where the terminal cursor remained visible when the showCursor property was changed from true to false on a focused component. The issue occurred because the renderCursor method would simply return early without actively hiding the cursor that was already displayed.

Key changes:

  • Added immediate cursor hiding when showCursor transitions to false while the component is focused

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

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