Add OSC 9;4 (term/OS progress indicator) support#292
Draft
epage wants to merge 3 commits into
Draft
Conversation
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
force-pushed
the
osc
branch
2 times, most recently
from
July 15, 2026 15:53
be424c0 to
81049ba
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This is to unblock console-rs/indicatif#596
The API is modeled off of color support with the one exception of not providing a
Term::term_progress.There is no standard name for OSC 9;4. I wasn't the most consistent in naming
TermProgressIn Cargo, we called the config field
term.progress.term-integration.This delegates the terminal detection logic and ANSI escape code writing to
anstyle-progresswhich 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.