fix(renderer): properly reset cursor position to start of line (#1472)
Before adoption: this commit came in with the history the project adopted, so no landing records it.
This change uses carriage return (`\r`) instead of moving the cursor backward by the terminal width at the end of rendering in inline mode. With this, we don't need to know the terminal width to reset the cursor position, which avoids issues when the renderer doesn't yet know the terminal width (e.g. the first render where the size message hasn't been sent to the renderer yet).
authored by Ayman Bagabas · committed by GitHub · parent a81d6f3 · Browse files · 3 files+11 added−11 removed
This commit
State
Before adoption: this commit came in with the history the project adopted, so no landing records it.
Trailers
- Fixes: https://github.com/charmbracelet/bubbletea/issues/1471
Diff stats
3 files+11 added−11 removed
- other:+11 added−11 removed