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

Open
opened 2026-01-31 07:20:40 +00:00 by claunia · 0 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:40 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#20668