charmbracelet / soft-serve

The mighty, self-hostable Git server for the command line🍦
MIT License
5.34k stars 135 forks source link

Dancing cursor #450

Open 0-issue opened 10 months ago

0-issue commented 10 months ago

This could be an issue in bubbletea or wish. When I scroll the page on ssh git.charm.sh, the cursor momentarily appears and disappears on different areas of the screen.

Reason: As I see, you have hidden the cursor with a civis sequence, which is good! But there is some hole somewhere in the program which momentarily displays the cursor and hides it again.

Recreate: Somehow increase the roundtrip latency of viewing ssh git.charm.sh, then press and hold down/up arrow key to scroll the pages.

Solution: When in civis, be in civis, unless you are passing a location that really shows cursor in steady state.