-
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
New 1.4 VT colors bug, foreground color not applied to " " (space) cells when hyperlinked #7700
Comments
YUP, you caught us |
@PankajBhojwani this is an error carried forward by |
Thanks for catching this! Fix is in PR |
@PankajBhojwani Thanks for fixing it. |
🎉This issue was addressed in #7738, which has now been successfully released as Handy links: |
🎉This issue was addressed in #7738, which has now been successfully released as Handy links: |
Come on, you knew this was coming, it's almost the same as #5502 😅
So we now have hyperlinks that show dotted underline under characters that are part of a link (since 1.4.2652.0)
You're probably delaying taking the attributes into account until they have a visible effect, which is sensible.
So foreground colors are not applied until a non-space character is shown.
But for hyperlinks, you're using the foreground color to draw the dotted underline, so you should now check if cell is a non-space or part of a hyperlink.
The following should only have the "Red" 3 cells with a red foreground color, but instead the red foreground is kept for two extra cells until the 'h' character is encountered, incorrectly making the dotted underline red in those cells.
echo -e '\e]8;;http://www.example.com/\aSample \e[31mRed\e[m hyperlink\e]8;;\a'
The text was updated successfully, but these errors were encountered: