Skip to content

Conversation

@catrielmuller
Copy link
Contributor

Context

Resolve: #3023

Implementation

useTerminalResize Hook to:

  • Detect width change
  • \x1b[2J - Clear entire screen
  • \x1b[3J - Clear scrollback buffer (needed for gnome-terminal)
  • \x1b[H - Move cursor to home position (0,0)
  • force the redraw of the static components

Update the all BOX definitions for a dynamic function

Screenshots

2025-10-23_11-27-51.mp4

How to Test

  • Resize your TTY

@catrielmuller catrielmuller requested a review from RSO October 23, 2025 14:31
@changeset-bot
Copy link

changeset-bot bot commented Oct 23, 2025

🦋 Changeset detected

Latest commit: db9cb43

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@kilocode/cli Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@RSO RSO merged commit d51ad64 into main Oct 23, 2025
15 checks passed
@RSO RSO deleted the catrielmuller/cli-resize branch October 23, 2025 15:18
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.

UI issue when resizing CLI on terminal window

3 participants