Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!wuarchive!zaphod.mps.ohio-state.edu!van-bc!ubc-cs!alberta!mts.ucs.UAlberta.CA!Al_Dunbar From: userAKDU@mts.ucs.UAlberta.CA (Al Dunbar) Newsgroups: comp.lang.c Subject: Re: printing underlined text Message-ID: <1925@mts.ucs.UAlberta.CA> Date: 16 Nov 90 02:28:23 GMT References: <43321@eerie.acsu.Buffalo.EDU> <8611@fmeed1.UUCP> <1990Nov11.153636.13643@mp.cs.niu.edu> Organization: MTS Univ of Alberta Lines: 27 In article <1990Nov11.153636.13643@mp.cs.niu.edu>, rickert@mp.cs.niu.edu (Neil Rickert) writes: >In article <8611@fmeed1.UUCP> russ@m-net.ann-arbor.mi.us (Russ Cage) writes: >>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? <<< 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 | -------------------+-------------------------------------------