Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!

Bold vs. bright?

May
15,047
271
Rex, fo you have any control over the boldness and brightness of the font? In TCMD, bright (more vivid) seems to imply bold (thicker). That's not the case in WT. Below, left to right, all Consolas regular, WT (13), TCMD (13), TCMD (14). I prefer the one from WT.

1784216403075.webp
 
And are you using a custom WT palette?
Yes, but it's nearly a copy of Ottosson. And the image I posted shows the same difference from TCMD regardless of what theme I use (just tested several). And I usually load custom colors in TCMD. I tested without doing that and the results were the same. It seems to have something to do with how TCMD (vs. WT) handles SGR 1 (CSI 1 m).
 
I'm confused now. You're asking TCMD to display bold text, but you don't really want it to display bold text?
Right, I want it bright, not bold. In my original image, the fon't shown is Consolas Bold, not my chosen Consolas. The VT docs uses "bright/bold". I believe that's two ways to describe the same thing, the brightness. I don't think it means change the intensity of the color AND use a heavier font. In WT and in a console, the font weight stays the same with SGR1.
 
According to MS,

1Bold/BrightApplies brightness/intensity flag to foreground color

Forget it. SGR 92 gives me what I want.
 
I also find the current white output to be a bit fainter than I would like.
 
According to MS,

1Bold/BrightApplies brightness/intensity flag to foreground color

Forget it. SGR 92 gives me what I want.

MS is flat-out wrong. That's probably a leftover from earlier versions of Windows Terminal, which did not support bold text and faked it by making it bright.

The 90 - 97 values are the correct way to get bright foreground colors (assuming you're using 16-color mapping).
 
Yes, that's from a pretty old document. Do you have a more up-to-date (and more thorough) one?

Bright (not_bold) has long been the MS response to SGR 1. It's still the default in WT and consoles.
 
Back
Top