charmbracelet / bubbletea

A powerful little TUI framework 🏗
MIT License
25.65k stars 744 forks source link

fix: renderer: reset the cursor on the first line #1008

Closed aymanbagabas closed 2 months ago

aymanbagabas commented 2 months ago

We need to reset the cursor position on the first line before rendering. Otherwise, it might mess up the first line being rendered.

Supersedes: https://github.com/charmbracelet/bubbletea/pull/1006

Fixes: https://github.com/charmbracelet/bubbletea/issues/1000 Fixes: 46241068daed (feat: reduce console/term dependencies (#897))