printing underlined text

Neil Rickert rickert at mp.cs.niu.edu
Mon Nov 12 02:36:36 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? 
>
>This really belongs in comp.lang.c, but...
>
>printf( "Underlined text\015__________ ____\n" );
>
>ought to work on any ASCII system with printing terminals.
>To use underlining on CRTs or other fancy equipment you
>have to get hardware-specific (or use termcap).
>

 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.

-- 
=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=
  Neil W. Rickert, Computer Science               <rickert at cs.niu.edu>
  Northern Illinois Univ.
  DeKalb, IL 60115.                                  +1-815-753-6940



More information about the Comp.lang.c mailing list