Underlining not showing for tabs #15272

Closed
opened 2026-01-31 04:33:21 +00:00 by claunia · 3 comments
Owner

Originally created by @LeCyberDucky on GitHub (Sep 19, 2021).

Windows Terminal version (or Windows build number)

10.0.19043.1237, 1.10.2383.0

Other Software

No response

Steps to reproduce

I am trying to print tabs with an underline. Please see this comment for a more detailed investigation: https://github.com/LukasKalbertodt/bunt/issues/25#issuecomment-922509889

Expected Behavior

I expect the tab characters to display with an underline.

Actual Behavior

The tab characters are not underlined:

image

Originally created by @LeCyberDucky on GitHub (Sep 19, 2021). ### Windows Terminal version (or Windows build number) 10.0.19043.1237, 1.10.2383.0 ### Other Software _No response_ ### Steps to reproduce I am trying to print tabs with an underline. Please see this comment for a more detailed investigation: https://github.com/LukasKalbertodt/bunt/issues/25#issuecomment-922509889 ### Expected Behavior I expect the tab characters to display with an underline. ### Actual Behavior The tab characters are not underlined: ![image](https://user-images.githubusercontent.com/19520383/133937814-5ae9f732-16ff-4791-949b-b1e4f5023924.png)
claunia added the Needs-TriageNeeds-Tag-Fix labels 2026-01-31 04:33:21 +00:00
Author
Owner

@j4james commented on GitHub (Sep 19, 2021):

This is the way it's intended to work. TAB is a control character which moves the cursor position to the next defined tab stop. It doesn't actually output anything, and thus can't add underlines to the cells that it has skipped over. If you want an underline in those cells you'll need to output a printable character there, like a space.

@j4james commented on GitHub (Sep 19, 2021): This is the way it's intended to work. `TAB` is a control character which moves the cursor position to the next defined tab stop. It doesn't actually output anything, and thus can't add underlines to the cells that it has skipped over. If you want an underline in those cells you'll need to output a printable character there, like a space.
Author
Owner

@LeCyberDucky commented on GitHub (Sep 19, 2021):

Alright, thanks for the explanation and for getting back to me so quickly. I'll close the issue then. Have a nice evening!

@LeCyberDucky commented on GitHub (Sep 19, 2021): Alright, thanks for the explanation and for getting back to me so quickly. I'll close the issue then. Have a nice evening!
Author
Owner

@DHowett commented on GitHub (Sep 20, 2021):

Thanks @j4james!

@DHowett commented on GitHub (Sep 20, 2021): Thanks @j4james!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#15272