Skip to content

Fix logger choices rendering at the end of the terminal - #1672

Open
nvi9 wants to merge 1 commit into
felangel:masterfrom
nvi9:fix-logger-choices-render-at-bottom
Open

Fix logger choices rendering at the end of the terminal#1672
nvi9 wants to merge 1 commit into
felangel:masterfrom
nvi9:fix-logger-choices-render-at-bottom

Conversation

@nvi9

@nvi9 nvi9 commented Apr 9, 2026

Copy link
Copy Markdown

Status

READY

Description

Write choices.length + 1 empty lines before actually writing choices to fix cursor save/restore at the end of the terminal.
This implementation doesn't work properly when the message or any of the choices render as multiple lines, but with single lines it seems to fix #507 and #1356.

Type of Change

  • ✨ New feature (non-breaking change which adds functionality)
  • 🛠️ Bug fix (non-breaking change which fixes an issue)
  • ❌ Breaking change (fix or feature that would cause existing functionality to change)
  • 🧹 Code refactor
  • ✅ Build configuration change
  • 📝 Documentation
  • 🗑️ Chore

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.

fix: (logger) when terminal is full chooseOne repeats lines

1 participant