-
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
Underline ANSI escape sequence does not work with space before reset sequence #6976
Comments
I believe this was fixed in #6506 (I know it says color, but it applies to all attributes.). I can't reproduce this, or a very similar vim issue (changing colors/changing rendition but not toggling underline turned underline off), after 6506 with the about-to-come-out 1.2 previe |
If you can build from source, would you mind validating that? If not, no big deal 😄 |
(For now, /dup #3076) |
Hi! We've identified this issue as a duplicate of another one that already exists on this Issue Tracker. This specific instance is being closed in favor of tracking the concern over on the referenced thread. Thanks for your report! |
I've noticed that using ANSI escape sequence
ESC[4mFOO ESC[0m
does not underline the text as expected.If I remove the space before the reset code
ESC[0m
, it works as expected.This works as expected in
cmd.exe
/powershell.exe
(which I assume both uses conhost),conemu
andcmder
.Environment
Steps to reproduce
Write-Host "$([char]27)[1mBold$([char]27)[0m $([char]27)[4mUnderline$([char]27)[0m Normal"
This underlines the text "Underline" as expected.
Write-Host "$([char]27)[1mBold $([char]27)[0m$([char]27)[4mUnderline$([char]27)[0m Normal"
This fails with underlining the text.
They say that a picture is worth a thousand words, so here's a screenshot as well of the repro.
Expected behavior
In the third step in the repro, I would expect the text
Underline
to be underlined.Actual behavior
The text
Underline
is not underlined.The text was updated successfully, but these errors were encountered: