New 1.4 VT colors bug, foreground color not applied to " " (space) cells when hyperlinked #10710

Open
opened 2026-01-31 02:28:01 +00:00 by claunia · 0 comments
Owner

Originally created by @PhMajerus on GitHub (Sep 22, 2020).

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'

image

Originally created by @PhMajerus on GitHub (Sep 22, 2020). 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'` ![image](https://user-images.githubusercontent.com/25664275/93941906-a7479d00-fd2f-11ea-9dc6-6ffb1973da62.png)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#10710