Path: utzoo!utgpu!news-server.csri.toronto.edu!qucdn!spraggej Newsgroups: comp.lang.pascal Subject: Re: It would be convenient to have a TP UNDERLINE string function Organization: Queen's University at Kingston Date: Wednesday, 5 Sep 1990 16:42:29 EDT From: John G. Spragge Message-ID: <90248.164230SPRAGGEJ@QUCDN.BITNET> References: <24397@adm.BRL.MIL> <5727@vice.ICO.TEK.COM> In article <5727@vice.ICO.TEK.COM>, bobb@vice.ICO.TEK.COM (Bob Beauchaine) says: > Unless you're going to use EGA or VGA and create your own internal > font, you've got an impossible task. The standard IBM character set > is the default for all text modes, and doesn't allow for underlined > characters. There are ways to do what you want (with the appropriate > monitor), but nothing as simple as you seem to think is possible. > > Sorry, > > Bob Beauchaine This is certainly true in graphics mode, but there are systems in which this is not the case; an underline is provided as part of the standard text attributes. In this case, setting the text colour to blue (1) and the background to white (15) had the effect of producing an underline. Whether this would work on all (nongraphic) monitors of this type, I have no idea. But if your monitor/card DOES display underlined text, getting it is simply a matter of setting the appropriate text attribute bit, which in TURBO Pascal is a matter of using the TEXTCOLOR and TEXTBACKGROUND routines. ------- disclaimer: Queen's University merely supplies me with computer services, and they are responsible for neither my opinions or my ignorance. John G. Spragge