Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!samsung!zaphod.mps.ohio-state.edu!rpi!uupsi!sunic!cs.umu.se!peter From: peter@cs.umu.se (Peter Lundberg) Newsgroups: comp.lang.pascal Subject: Re: It would be convenient to have a TP UNDERLINE string function Message-ID: <1990Sep10.144853.5157@cs.umu.se> Date: 10 Sep 90 14:48:53 GMT References: <24397@adm.BRL.MIL> <1990Sep5.163924.2864@uwasa.fi> Sender: news@cs.umu.se (News Administrator) Organization: /usr/new/Rn/etc/organization Lines: 15 In article <1990Sep5.163924.2864@uwasa.fi> ts@uwasa.fi (Timo Salmi LASK) writes: >In article <24397@adm.BRL.MIL> J_SCHULL@acc.haverford.edu (Jonathan Schull) writes: >>that would let you write lines like, >>WRITELN('I want to underline ',UNDERLINE('this phrase,'),' not this one'); >> >>Does anyone know the appropriate magic? > >Yes, sure. And the magic is called the graphics mode. > There is absolutetly no need to do this in graphics mode, it's much easier to write the string directly to memory, setting the attribute byte to it's appropriate value. And it's a heck of a lot faster to! pl (peter@cs.umu.se)