[comp.unix.programmer] printing underlined text

haozhou@acsu.buffalo.edu (hao zhou) (10/31/90)

Does anybody out there know if it's possible to print out underlined
text using printf() in C? And how? 

	Thanks ... Hao 
 
-- 
Internet:haozhou@acsu.buffalo.edu BITNET:haozhou%acsu.buffalo.edu@UBVM.BITNET
UUCP: rutgers!ub!haozhou

cage@fmeed1.UUCP (Russ Cage) (10/31/90)

In article <43321@eerie.acsu.Buffalo.EDU> haozhou@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).

Followups to comp.lang.c.
-- 
Russ Cage	Ford Powertrain Engineering Development Department
Work:  itivax.iti.org!cfctech!fmeed1!cage   (CHATTY MAIL NOT ANSWERED HERE)
Home:  russ@m-net.ann-arbor.mi.us  (All non-business mail)
Member:  HASA, "S" division.