Skip to content

Add support for OSC 9;4 - #64

Merged
chenxiaolong merged 2 commits into
masterfrom
osc94
Jul 31, 2026
Merged

Add support for OSC 9;4#64
chenxiaolong merged 2 commits into
masterfrom
osc94

Conversation

@chenxiaolong

Copy link
Copy Markdown
Owner

This allows the download progress to be communicated to terminal emulators. Eg. Konsole and Windows Terminal can show the progress in the tab bar or taskbar icon.

@chenxiaolong chenxiaolong self-assigned this Jul 30, 2026
This allows the download progress to be communicated to terminal
emulators. Eg. Konsole and Windows Terminal can show the progress in the
tab bar or taskbar icon.

Signed-off-by: Andrew Gunnerson <accounts+github@chiller3.com>
@chenxiaolong

Copy link
Copy Markdown
Owner Author

I'm going to switch to using anstyle-progress once rust-cli/anstyle#348 is merged. After testing with various terminal emulators, it looks like the ones that don't support OSC 9;4 just print garbage to the screen. I don't want to maintain my own compatibility list.

Comment thread src/progress.rs
};

use indicatif::{BinaryBytes, MultiProgress, ProgressState, style::ProgressTracker};
use indicatif::{BinaryBytes, MultiProgress, ProgressBar, ProgressState, style::ProgressTracker};

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

I've also started work on integrating this into indicatif. I've at least go the PR against console up. I just need to do the indicatif side.

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

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

Thanks, looking forward to that!

Signed-off-by: Andrew Gunnerson <accounts+github@chiller3.com>
chenxiaolong added a commit that referenced this pull request Jul 31, 2026
Signed-off-by: Andrew Gunnerson <accounts+github@chiller3.com>
@chenxiaolong
chenxiaolong merged commit 451dc1a into master Jul 31, 2026
6 checks passed
@chenxiaolong
chenxiaolong deleted the osc94 branch July 31, 2026 02:30
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.

2 participants