Path: utzoo!attcan!uunet!zaphod.mps.ohio-state.edu!julius.cs.uiuc.edu!ux1.cso.uiuc.edu!mp.cs.niu.edu!rickert From: rickert@mp.cs.niu.edu (Neil Rickert) Newsgroups: comp.lang.c Subject: Re: printing underlined text Message-ID: <1990Nov11.153636.13643@mp.cs.niu.edu> Date: 11 Nov 90 15:36:36 GMT References: <43321@eerie.acsu.Buffalo.EDU> <8611@fmeed1.UUCP> Organization: Northern Illinois University Lines: 26 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? > >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 Northern Illinois Univ. DeKalb, IL 60115. +1-815-753-6940