Skip to content

Add OSC 9;4 (term/OS progress indicator) support#292

Draft
epage wants to merge 3 commits into
console-rs:mainfrom
epage:osc
Draft

Add OSC 9;4 (term/OS progress indicator) support#292
epage wants to merge 3 commits into
console-rs:mainfrom
epage:osc

Conversation

@epage

@epage epage commented Jul 15, 2026

Copy link
Copy Markdown

This is to unblock console-rs/indicatif#596

The API is modeled off of color support with the one exception of not providing aTerm::term_progress.

There is no standard name for OSC 9;4. I wasn't the most consistent in naming

  • "progress integration" (for a terminal)
  • TermProgress

In Cargo, we called the config field term.progress.term-integration.

This delegates the terminal detection logic and ANSI escape code writing to anstyle-progress which is a purpose-built crate and should not expand in scope to pull in other dependencies (unless the crate is being split even smaller). There are no de facto standard override variables for term progress like no-color.

@epage

epage commented Jul 15, 2026

Copy link
Copy Markdown
Author

Starting as a draft so I can collect any feedback people want to give while I work on the indicatif side of this

@epage
epage force-pushed the osc branch 2 times, most recently from be424c0 to 81049ba Compare July 15, 2026 15:53
@epage epage changed the title Add OSC 9;4 support Add OSC 9;4 (term/OS progress indicator) support Jul 15, 2026

@djc djc 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.

This looks okay to me.

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