Undercurl color separator inconsistent #22354

Closed
opened 2026-01-31 08:10:40 +00:00 by claunia · 3 comments
Owner

Originally created by @matrdr on GitHub (Oct 6, 2024).

Windows Terminal version

1.23.2701.0, also 1.20.11781.0

Windows build number

No response

Other Software

No response

Steps to reproduce

Open WSL.
Try the following commands:

echo -e "Text is \e[38:2::255:0:0m\e[58:2::0:255:0m\e[4:3mundercurled\e[59m\e[4;0m."
echo -e "Text is \e[38;2;255;0;0m\e[58:2::0:255:0m\e[4:3mundercurled\e[59m\e[4;0m."
echo -e "Text is \e[38;2;255;0;0m\e[58;2;0;255;0m\e[4:3mundercurled\e[59m\e[4;0m."

You will see that the first two commands set the text color to red and the underline color to green. But the final command does not.

image

Expected Behavior

I would expect the way that I set color to the text or to the underline work in the same way.

Actual Behavior

Setting the text color with the \e[38 escape sequence takes the RGB color option separated by colons as well as semicolons. For the underline color only the colon option seems to work.

The documentation only mentions the semicolon option (the one that does not work for underline).

I compared this to the behavior of the xfce4-terminal. This one prints red text with green undercurl for all three commands.

Originally created by @matrdr on GitHub (Oct 6, 2024). ### Windows Terminal version 1.23.2701.0, also 1.20.11781.0 ### Windows build number _No response_ ### Other Software _No response_ ### Steps to reproduce Open WSL. Try the following commands: ``` echo -e "Text is \e[38:2::255:0:0m\e[58:2::0:255:0m\e[4:3mundercurled\e[59m\e[4;0m." ``` ``` echo -e "Text is \e[38;2;255;0;0m\e[58:2::0:255:0m\e[4:3mundercurled\e[59m\e[4;0m." ``` ``` echo -e "Text is \e[38;2;255;0;0m\e[58;2;0;255;0m\e[4:3mundercurled\e[59m\e[4;0m." ``` You will see that the first two commands set the text color to red and the underline color to green. But the final command does not. ![image](https://github.com/user-attachments/assets/49d000a4-f5c2-46e1-8238-00589b8d443a) ### Expected Behavior I would expect the way that I set color to the text or to the underline work in the same way. ### Actual Behavior Setting the text color with the `\e[38` escape sequence takes the RGB color option separated by colons as well as semicolons. For the underline color only the colon option seems to work. The documentation only mentions the semicolon option (the one that does not work for underline). I compared this to the behavior of the xfce4-terminal. This one prints red text with green undercurl for all three commands.
claunia added the Resolution-Duplicate label 2026-01-31 08:10:40 +00:00
Author
Owner

@DHowett commented on GitHub (Oct 6, 2024):

Thanks! This is a /duplicate of #17426

@DHowett commented on GitHub (Oct 6, 2024): Thanks! This is a /duplicate of #17426
Author
Owner

@DHowett commented on GitHub (Oct 6, 2024):

Maybe that didn’t trigger the bot. Let’s try again.

/dup #17426

@DHowett commented on GitHub (Oct 6, 2024): Maybe that didn’t trigger the bot. Let’s try again. /dup #17426
Author
Owner

@microsoft-github-policy-service[bot] commented on GitHub (Oct 6, 2024):

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!

@microsoft-github-policy-service[bot] commented on GitHub (Oct 6, 2024): 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! <!-- Policy app identification https://img.shields.io/static/v1?label=PullRequestIssueManagement. -->
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#22354