-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Emit progress state escape codes #11436
Emit progress state escape codes #11436
Conversation
Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @epage (or someone else) soon. Please see the contribution instructions for more information. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the pull request, and sorry for the long wait.
This is a UI change. Could you demonstrate demo GIFs or videos for it? It would be helpful if you could provide the result on both msvc and mingw.
In addition, do you have the official documentation at hand about this escape code? CodeEmu doc doesn't seem to be official I feel like.
@@ -39,6 +40,25 @@ struct Format { | |||
max_print: usize, | |||
} | |||
|
|||
enum ProgressCode { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is Windows-only feature, right? Is it possible to add #[cfg(windows)]
for all relevant code and items?
Also, having doc comments on each new items would be fantastic. Thanks!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I do think that other terminal emulators may also implement those, but I can't verify now.
It seems like per alacritty/alacritty#5201, it won't get this support, however.
As per microsoft/terminal#8055, the ConEmu style is the implementation reference. |
Emit progress state escape codes when drawing progress bar.
888a723
to
b60dc0d
Compare
Here is a screen recording of running 2022-12-21.14-57-40.mp4Notice the bar in the taskbar, and the circle getting bigger / fuller at the top left corner. |
Thanks for the screen recording! Unfortunately on macOS it doesn't seem to compile: https://github.com/rust-lang/cargo/actions/runs/3749845063/jobs/6368801382 I am still uncertain the adoption rate of this non-standard escape code. Does the majority of terminal emulators handle or ignore this well? Sorry being so conservative but I've seen some issue around “escape code not recognized” sometimes. That's also why I suggested adding |
Current testing progress:
Procedure:
|
#11436 (comment) was a good try. Thank you. I'll probably split Support to two columns:
Marked this as |
Personally I love this kind of good UI enhancement with the system. We just need more data to make sure it is safe for most people. Going to close due to inactivity. We still look for people investing in surveying. Thank you anyway! Edited: track in #11432. |
Emit progress state escape codes when drawing progress bar.
Fixes #11432