Skip to content

fix: renderer: use newline instead of cud1 to move cursor down#1323

Merged
aymanbagabas merged 2 commits intomainfrom
fix-newline
Feb 10, 2025
Merged

fix: renderer: use newline instead of cud1 to move cursor down#1323
aymanbagabas merged 2 commits intomainfrom
fix-newline

Conversation

@aymanbagabas
Copy link
Copy Markdown
Member

Using cud1 (\x1b[B) won't scroll the terminal if the cursor is already at the bottom of the screen. Instead, use a newline character to move the cursor down and scroll the terminal if necessary.

Fixes: #1322

Using cud1 (`\x1b[B`) won't scroll the terminal if the cursor is already
at the bottom of the screen. Instead, use a newline character to move
the cursor down and scroll the terminal if necessary.

Fixes: #1322
@aymanbagabas
Copy link
Copy Markdown
Member Author

Hey @antonmedv, this patch should resolve your last line disapearing issue. We're looking into the other Windows problems 🙂

@antonmedv
Copy link
Copy Markdown

Awesome! Cool!

@aymanbagabas aymanbagabas merged commit 771a101 into main Feb 10, 2025
@aymanbagabas aymanbagabas deleted the fix-newline branch February 10, 2025 21:21
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.

bug: last rendered line gets ignored

2 participants