Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add support for ConEmu indeterminate progress indicator #8047

Open
wants to merge 1 commit into
base: latest
Choose a base branch
from

Conversation

nikeee
Copy link

@nikeee nikeee commented Jan 20, 2025

Adds support for:
https://conemu.github.io/en/AnsiEscapeCodes.html#OSC_Operating_system_commands

The Windows Terminal supports above mentioned Ansi Code extensions. Thoese extensions originate from ConEmu and were also added to the dotnet cli

On windows, this displays a spinner in the current tab. It also marks the respective taskbar item as indeterminate progressing. See it in action:

indicator2
(mp4)

The user is able to minimize the terminal and is still informed about the state of the npm operation.

Note: this code works only on ConEmu terminals, and conflicts with push a notification code on iTerm2.
https://iterm2.com/documentation-escape-codes.html
I could not check what exactly happens in iTerm2, maybe someone else can check this. If that ends up being a problem, we should exclude macOS from this feature.

If this doesn't align with the goals of npm-cli, just close this PR without any comment.

Adds support for:
https://conemu.github.io/en/AnsiEscapeCodes.html#OSC_Operating_system_commands

Note: this code works only on ConEmu terminals, and conflicts with push a notification code on iTerm2.
Ref: https://iterm2.com/documentation-escape-codes.html
@nikeee nikeee requested a review from a team as a code owner January 20, 2025 20:57
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.

1 participant