-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
Incomplete support of ConEmu's OSC 9;4 sequences #9960
Comments
Wow. This is way more complicated than I originally thought. Default and missing parameter values map to 0 (I believe we already do this). But when the progress value is 0, that has special meaning for states 2 and 4. As far as I can make out, the rules are as follow:
Some examples:
|
Actually it looks like I'm wrong about this too. The OSC commands don't use the standard parameter parser, so this doesn't handle the cases where the semicolon is present but the parameter value isn't, e.g. |
@PankajBhojwani as an fyi |
## Summary of the Pull Request When we parse OSC 9;4, allow a trailing semicolon (i.e. allow `9;4;` or something like `9;4;3;`). ## PR Checklist * [x] Closes #9960 * [X] Tests added/passed ## Validation Steps Performed OSC 9;4 sequences with or without trailing semicolons work
## Summary of the Pull Request When we parse OSC 9;4, allow a trailing semicolon (i.e. allow `9;4;` or something like `9;4;3;`). ## PR Checklist * [x] Closes #9960 * [X] Tests added/passed ## Validation Steps Performed OSC 9;4 sequences with or without trailing semicolons work (cherry picked from commit f518235)
🎉This issue was addressed in #10024, which has now been successfully released as Handy links: |
#8055 implemented the ConEmu-specific VT sequence for displaying progress bars in the Windows task bar. According to https://conemu.github.io/en/AnsiEscapeCodes.html#ConEmu_specific_OSC, the progress value number in the sequence is optional when
st
is set to 2 or 4 but Windows Terminal currently does not recognize these sequences. For example:switches the progress state to "Error" in ConEmu but does not have any effect in Windows Terminal.
Even though it is not explicitly written in the documentation linked above, ConEmu also allows leaving out the progress value when
pr
is set to values other than 2 and 4. This makes sense since for clearing the progress withpr = 0
or switching to indeterminate statepr = 3
, the progress value does not have any meaning anyway.I suggest to adjust the implementation in Windows Terminal to properly recognize sequences where the
pr
value has been left out in order to be compatible with ConEmu. The expected behaviour in this case would be to just switch the progress state but leave the progress value at the previously set value./cc @DHowett
The text was updated successfully, but these errors were encountered: