printing underlined text

Mark Garlanger garlange at mentor.cc.purdue.edu
Thu Nov 15 14:06:20 AEST 1990


In article <8611 at fmeed1.UUCP> russ at m-net.ann-arbor.mi.us (Russ Cage) writes:
>In article <43321 at eerie.acsu.Buffalo.EDU> haozhou at acsu.buffalo.edu (hao zhou) writes:
>>Does anybody out there know if it's possible to print out underlined
>>text using printf() in C? And how? 
>
>printf( "Underlined text\015__________ ____\n" );
>
A slightly better way would be to put it:

printf("__________ ____\015Underlined text\n");

This way when someone tries to view it on a regular terminal the text will
still be readable. 

			 	Mark



More information about the Comp.lang.c mailing list