Welcome!

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

SignUp Now!

If I might make so bold....

Charles Dye

Super Moderator
May
5,331
161
Staff member
Does any one know of an escape sequence to set boldface text in WT? By which I mean, unambiguously, a boldface type style, not bright-colors-or-maybe-boldface depending on Terminal's current settings.

I know that rendering 'bold' as bright colors has a long history in computing. But come on, it's the twenty-first century already.
 
Just some text or redraw with new font? I doubt either one.
 
OSC 50 does it in XTerm (the whole terminal). I found a few examples but every OSC50;...ST I tried in WT was ignored.
 
Well, I'm not really surprised, but I am a little disappointed. It's strange that there are easy ways to do weird stuff like double underlining and strikethrough — and God have mercy, blinking! — but a text style that is useful in the real world...?
 
i only know of these...

1732675050636.webp
 
@Charles Dye

Should be possible since WT supports DirectWrite ... (the former GDI renderer "Alas" which was introduced > 30 years ago couldn't do that yet).

Set the (related profile) to the following in WT:

Bold_WT.webp

The german "Fettformatierung" means bold ...
It's the property "intenseTextStyle", see also here:
Windows Terminal Appearance Profile Settings

Then the escape seq. [1m should work, see my tests here:

Created a .cmd with following code that should be successful in the "normal" windows command line (CMD) (should work in TCC too):
Code:
@echo off
@set ESC=
echo %ESC%[1mBOLD or BRIGHT?%ESC%[0m
pause

Before I changed that preference - that's bright only (zooming for better view) ...

Bright.webp


After I changed that preference - that's real bold (zooming for better view) ...

Bold.webp
 
Last edited:
Yes. But I was hoping to be able to set boldface without changing WT's profile settings — regardless of the profile. I guess that is not going to happen.
 
UNFORTUNATELY, it seems so, yes! Will investigate a bit in this thing yet but I'm not really optimistic ...
 
No chance I think without modify the profile. AT LEAST you can also set there "all": render intense text as both bold and bright", then it won't change the colors related to non WT prompts ... so it could be a one timer change in settings ...

PS: Make it for the "Standard Profile" so it's changes all profiles at once.
 
There are no such thing as "bold" as in font weight in VT.
It's just different kinds of emphasis. How exactly are these rendered is up to the terminal itself.
 
@AnrDaemon

No thats wrong. since a while real bold is available in WT ... see my example above.
 
Back
Top