Jeremy Schlatter
faf67db089
cmd: fix progress bar flickering
...
Previous code cleared the display before writing new content, creating a
window where the terminal could (and in some cases did) render empty lines.
Instead, we now write new content over the old content, only clearing
the trailing end of lines for cases where the new line is shorter.
Fixes #1664
2025-02-17 13:39:02 -08:00
Michael Yang
e40145a39d
lint
2024-06-04 11:13:30 -07:00
Michael Yang
2bb2bdd5d4
fix lint
2024-01-09 09:36:58 -08:00
Jeffrey Morgan
6bbd6e26fb
fix temporary newline created and removed with spinner in `ollama run`
2023-11-20 00:49:08 -05:00
Jeffrey Morgan
258addc799
fix comment in `progress.go`
2023-11-19 13:46:19 -05:00
Jeffrey Morgan
c06b9b7304
update progress rendering to be closer to `v0.1.10`
2023-11-19 13:43:21 -05:00
Michael Yang
3cb07d2773
simplify StopAndClear
2023-11-17 10:26:22 -08:00
Michael Yang
976068369b
stop all spinners on progress stop
2023-11-17 10:06:19 -08:00
Michael Yang
7ea905871a
only move cursor up if pos > 0
2023-11-17 10:06:19 -08:00
Michael Yang
4dcf7a59b1
generate progress
2023-11-17 10:06:19 -08:00
Michael Yang
c4a3ccd7ac
progress
2023-11-17 10:06:19 -08:00