printing underlined text

Al Dunbar userAKDU at mts.ucs.UAlberta.CA
Fri Nov 16 13:28:23 AEST 1990


In article <1990Nov11.153636.13643 at mp.cs.niu.edu>, rickert at mp.cs.niu.edu (Neil Rickert) writes:
>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?
<<< deletions >>>
> One improvement would be to use:
>
>printf( "__________ ____\015Underlined text\n" );
>
> That way, on a CRT you would at least see the text instead of the
>underscores.
>
A further change will possibly save a few edit/compile cycles,
or at least some drudgery:
 
printf( "__________ ____?015"?
"Underlined text?n" );
 
I steadfastly refuse to count characters in strings since last
using hollerith fields in Fortran.
 
-------------------+-------------------------------------------
Al Dunbar          |
Edmonton, Alberta  |   this space for rent
CANADA             |
-------------------+-------------------------------------------



More information about the Comp.lang.c mailing list