0
How can I underline an output in c program? Thank you.
I have tried using the ansi escape codes but not working
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.
+ 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
0
Thank you