Git Bash bold in One Half Light runs text together #20671

Closed
opened 2026-01-31 07:20:43 +00:00 by claunia · 9 comments
Owner

Originally created by @garretwilson on GitHub (Oct 13, 2023).

Windows Terminal version

1.17.11461.0

Windows build number

10.0.19045.0

Other Software

git version 2.42.0.windows.2

Steps to reproduce

I'm using Git Bash with the "One Half Light" color scheme. I want to show something in bold, like this:

echo "Uploading $(tput bold)some-really-long-filename.zip$(tput sgr0) to the server ..."

At first the bold didn't show up any differently than the regular text. Then I went to "Text Formatting" and changed "Intense text style" to "Bold font". Now bold shows up. But often it runs the text together.

Expected Behavior

I wanted bold text, without running the text together. Here is how it looks (as expected) in the terminal of VS Code.

vs-code-bold

Actual Behavior

Microsoft Terminal jams some of the words together. Note the space after ….zip completely disappeared.

microsoft-termina-bold

The point of using bold was to make certain things stand out, but this bug defeats the purpose by jumbling things together.

The output of Maven, for example, is a bit garbled, because many of the goal identifiers are shoved over, "eating" the space of the words after them.

This only seems to happen of the run of bold text is sufficiently long.

My guess off the top of my head is that the bold algorithm is calculating the space taken up based upon the non-bold text, and not taking into account that the bold text is wider. Over a few characters this per-letter error accumulates. Just a hunch.

Maybe you could just add an option to use the VS Code terminal renderer in Microsoft Terminal?

Originally created by @garretwilson on GitHub (Oct 13, 2023). ### Windows Terminal version 1.17.11461.0 ### Windows build number 10.0.19045.0 ### Other Software git version 2.42.0.windows.2 ### Steps to reproduce I'm using Git Bash with the "One Half Light" color scheme. I want to show something in bold, like this: ```bash echo "Uploading $(tput bold)some-really-long-filename.zip$(tput sgr0) to the server ..." ``` At first the bold didn't show up any differently than the regular text. Then I went to "Text Formatting" and changed "Intense text style" to "Bold font". Now bold shows up. But often it runs the text together. ### Expected Behavior I wanted bold text, without running the text together. Here is how it looks (as expected) in the terminal of VS Code. ![vs-code-bold](https://github.com/microsoft/terminal/assets/627125/5712ad73-f9c8-449c-aee3-1692236db3e3) ### Actual Behavior Microsoft Terminal jams some of the words together. Note the space after `….zip` completely disappeared. ![microsoft-termina-bold](https://github.com/microsoft/terminal/assets/627125/05312e36-d0fe-4e1a-b2b1-ed4400190e28) The point of using bold was to make certain things stand out, but this bug defeats the purpose by jumbling things together. The output of Maven, for example, is a bit garbled, because many of the goal identifiers are shoved over, "eating" the space of the words after them. This only seems to happen of the run of bold text is sufficiently long. My guess off the top of my head is that the bold algorithm is calculating the space taken up based upon the non-bold text, and not taking into account that the bold text is wider. Over a few characters this per-letter error accumulates. Just a hunch. Maybe you could just add an option to use the VS Code terminal renderer in Microsoft Terminal?
claunia added the Needs-TriageIssue-BugNeeds-Attention labels 2026-01-31 07:20:43 +00:00
Author
Owner

@garretwilson commented on GitHub (Oct 13, 2023):

This happens on the "Solarized Light" color scheme as well. Must be a general Microsoft Terminal rendering bug.

@garretwilson commented on GitHub (Oct 13, 2023): This happens on the "Solarized Light" color scheme as well. Must be a general Microsoft Terminal rendering bug.
Author
Owner

@garretwilson commented on GitHub (Oct 13, 2023):

Unfortunately rendering bold as "Bright colors" (the default" doesn't seem to make any difference at all, so it looks like I'll have to abandon Microsoft Terminal and use VS Code terminal for almost everything until this is fixed. I guess if I need two directories open I can just add more terminal tabs in VS Code.

@garretwilson commented on GitHub (Oct 13, 2023): Unfortunately rendering bold as "Bright colors" (the default" doesn't seem to make any difference at all, so it looks like I'll have to abandon Microsoft Terminal and use VS Code terminal for almost everything until this is fixed. I guess if I need two directories open I can just add more terminal tabs in VS Code.
Author
Owner

@zadjii-msft commented on GitHub (Oct 13, 2023):

I think this was fixed in 1.18 or 1.19 - Can you double check in Terminal Preview/?

@zadjii-msft commented on GitHub (Oct 13, 2023): I _think_ this was fixed in 1.18 or 1.19 - Can you double check in [Terminal Preview](https://aka.ms/terminal-preview)/?
Author
Owner

@garretwilson commented on GitHub (Oct 13, 2023):

I think this was fixed in 1.18 or 1.19

Good news! Thanks for letting me know.

Can you double check in Terminal Preview/?

Unfortunately I just don't have the time at the moment, but I'll be happy to check and report back once those versions are released and my installation gets upgraded.

@garretwilson commented on GitHub (Oct 13, 2023): > I _think_ this was fixed in 1.18 or 1.19 Good news! Thanks for letting me know. > Can you double check in [Terminal Preview](https://aka.ms/terminal-preview)/? Unfortunately I just don't have the time at the moment, but I'll be happy to check and report back once those versions are released and my installation gets upgraded.
Author
Owner

@zadjii-msft commented on GitHub (Oct 13, 2023):

Good news! You can actually just immediatly install the update by downloading the .msixbundle from our releases page:

@zadjii-msft commented on GitHub (Oct 13, 2023): Good news! You can actually just immediatly install the update by downloading the `.msixbundle` from our releases page: * Preview https://github.com/microsoft/terminal/releases/tag/v1.19.2831.0 * Stable https://github.com/microsoft/terminal/releases/tag/v1.18.2822.0
Author
Owner

@garretwilson commented on GitHub (Oct 20, 2023):

I think this was fixed in 1.18 or 1.19

It's not fixed in v1.18.2822.0 at least.

@garretwilson commented on GitHub (Oct 20, 2023): > I _think_ this was fixed in 1.18 or 1.19 It's not fixed in v1.18.2822.0 at least.
Author
Owner

@zadjii-msft commented on GitHub (Oct 25, 2023):

Ah shoot - can you check again and make sure that the new text renderer is enabled? I forgot that it's disabled by default in the Stable builds (but is enabled by default in preview)

image

@zadjii-msft commented on GitHub (Oct 25, 2023): Ah shoot - can you check again and make sure that the new text renderer is enabled? I forgot that it's disabled by default in the Stable builds (but is enabled by default in preview) ![image](https://github.com/microsoft/terminal/assets/18356694/49a165e6-9105-418d-af77-172a3c174e0c)
Author
Owner

@garretwilson commented on GitHub (Oct 25, 2023):

Woohoo! 🎉 That was it! I needed to turn on "Use the new text renderer".

Very nice to see a bug getting fixed. Thanks!

@garretwilson commented on GitHub (Oct 25, 2023): Woohoo! 🎉 That was it! I needed to turn on "Use the new text renderer". Very nice to see a bug getting fixed. Thanks!
Author
Owner

@DHowett commented on GitHub (Oct 26, 2023):

Amazing, thanks for confirming! That new engine will eventually be made the default - we're currently collecting reliability (and bug fix!) data on it. Let us know if you find anything weird!

@DHowett commented on GitHub (Oct 26, 2023): Amazing, thanks for confirming! That new engine will eventually be made the default - we're currently collecting reliability (and bug fix!) data on it. Let us know if you find anything weird!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#20671