[PR #9201] fix: progress flickering on faster terminal emulators #59583

Open
opened 2026-04-29 14:30:45 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ollama/ollama/pull/9201
Author: @mxyng
Created: 2/18/2025
Status: 🔄 Open

Base: mainHead: progress-flicker


📝 Commits (2)

📊 Changes

4 files changed (+36 additions, -56 deletions)

View changed files

📝 api/client.go (+3 -2)
📝 cmd/cmd.go (+4 -34)
📝 main.go (+13 -1)
📝 progress/progress.go (+16 -19)

📄 Description

In additional to the changes made in #9079, this also fixes the cursor flickering by hiding the cursor for all of progress bar rendering rather than hiding and unhiding each iteration

Follow up to #9079


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/ollama/ollama/pull/9201 **Author:** [@mxyng](https://github.com/mxyng) **Created:** 2/18/2025 **Status:** 🔄 Open **Base:** `main` ← **Head:** `progress-flicker` --- ### 📝 Commits (2) - [`e8d35d0`](https://github.com/ollama/ollama/commit/e8d35d0de02d604b76260a36e8413829aadf39ad) cmd: fix hide cursor - [`fcfbb06`](https://github.com/ollama/ollama/commit/fcfbb06f1bd3f9bda2641d9e7c34e83a5e73d257) cmd: handle sigint globally ### 📊 Changes **4 files changed** (+36 additions, -56 deletions) <details> <summary>View changed files</summary> 📝 `api/client.go` (+3 -2) 📝 `cmd/cmd.go` (+4 -34) 📝 `main.go` (+13 -1) 📝 `progress/progress.go` (+16 -19) </details> ### 📄 Description In additional to the changes made in #9079, this also fixes the cursor flickering by hiding the cursor for all of progress bar rendering rather than hiding and unhiding each iteration Follow up to #9079 --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-04-29 14:30:45 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#59583