0

How can I underline an output in c program? Thank you.

I have tried using the ansi escape codes but not working

25th Oct 2020, 9:17 PM
Mor Reece
Mor Reece - avatar
3 Respuestas
+ 3
Character encodings, like ASCII or Unicode, doesn't support such thing as bold or underlined text. This kind of text formatting have specifics file formats that applications, such word processors or html interpreters, uses to render text with the properly formatting.
25th Oct 2020, 9:47 PM
Puffy
Puffy - avatar
+ 1
Actually, there is a unicode underline symbol U+0332, but it's not guaranteed that console you use supports utf-8 (though many do), and as you can see if you run the code, even when it does the result is far from pretty. I am also not sure if writing utf-8 byte by byte is ok like i do - between two chars the output string is in a bad state. https://code.sololearn.com/cbCq9en4U965/?ref=app
26th Oct 2020, 5:38 PM
Volodymyr Chelnokov
Volodymyr Chelnokov - avatar
0
Thank you
25th Oct 2020, 10:51 PM
Mor Reece
Mor Reece - avatar