How to display bold/italic/underlined text in the console
ConEmu provides full-featured support of Windows console functions. That means you may run here any console applications designed for WinApi.
On the other hand, Windows console does not provide official way to print bold/italic/underlined text.
However, when you are using ConEmu you may use them. Here are some tricks.
- Extend fonts feature
- Xterm-256 emulation
Extend fonts feature
You may choose two background color indexes to force ConEmu to draw text using bold/italic outline.
When you turn the feature On on the ‘Main’ page, by default, ‘Light red’ background will be replaced with bold outlined text, and ‘Magenta’ background will be replaced with italic outlined text.
cmd.exe prompt: bold
path followed by italic
time and standard
The drawback. You lose two background indexes and you must choose
the background color they would replaced with.
In the following examples, black color (
was selected for using with
Extend fonts settings
Bold and italic in cmd prompt
Another way is using xterm-256 ANSI sequences.
For now, ConEmu provides only limited support for that feature, extended codes are processed in the bottom of the scroll buffer only. When you lines goes up - extended attributes will be lost.
How to put your prompt at the bottom described here: PromptAtTheBottom.
Anyway, if you choose SGR 38 or 48 you may use bold/italic/underlined after them.
Bold/italic/underlined in cmd prompt