Skip to content

ui: don't rewrite unchanged lines in status bar#5648

Merged
MichaelEischer merged 6 commits into
restic:masterfrom
dgkmd:feature/statusbar
May 14, 2026
Merged

ui: don't rewrite unchanged lines in status bar#5648
MichaelEischer merged 6 commits into
restic:masterfrom
dgkmd:feature/statusbar

Conversation

@dgkmd

@dgkmd dgkmd commented Dec 23, 2025

Copy link
Copy Markdown
Contributor

What does this PR change? What problem does it solve?

Previously, status bars were entirely rewritten every frame if any of its content has updated.
This behavior had made any user interaction (such as selection) with status bar
impossible in certain terminal emulators, even on the unchanged lines.
Now it writes only changed lines at status bar update, thereby improving
user experience in those terminal emulators.

It is tested in Ubuntu.24.04.3 with st 0.9.3.

Was the change previously discussed in an issue or on the forum?

Closes #5562

Checklist

  • I have added tests for all code changes.
  • I have added documentation for relevant changes (in the manual).
  • There's a new file in changelog/unreleased/ that describes the changes for our users (see template).
  • I'm done! This pull request is ready for review.

@MichaelEischer MichaelEischer self-assigned this May 10, 2026

@MichaelEischer MichaelEischer left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

I've factored the termstatus code a bit further to keep the whole unchanged handling inside skipUnchanged.

@MichaelEischer

Copy link
Copy Markdown
Member

(Rebased and squashed a few commits)

@MichaelEischer MichaelEischer enabled auto-merge May 14, 2026 08:43
@MichaelEischer MichaelEischer merged commit 7878485 into restic:master May 14, 2026
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feature request: don't rewrite unchanged file names under progress bar

2 participants