Path: utzoo!attcan!uunet!tektronix!tekcrl!tekgvs!toma From: toma@tekgvs.GVS.TEK.COM (Tom Almy) Newsgroups: comp.sys.ibm.pc Subject: Re: Underlining on EGA monitors Message-ID: <4418@tekgvs.GVS.TEK.COM> Date: 22 Dec 88 18:10:06 GMT References: <1457@aucs.UUCP> Reply-To: toma@tekgvs.GVS.TEK.COM (Tom Almy) Organization: Tektronix, Inc., Beaverton, OR. Lines: 22 In article <1457@aucs.UUCP> 831059l@aucs.UUCP (Langlois) writes: > > I've been trying to get underlining to work on an EGA monitor but >I have had only limited success. I[...] >WordPerfect 5.0 allows >underlining on different backgrounds. I wonder how they do it. You can run the EGA in a 512 character mode, where 256 characters are underlined versions of the other 256 characters. The fonts are stored in video RAM. One of the bits in each character position's attribute byte is used to indicate which set of 256 characters to use. After loading the fonts palette you get 8 foreground colors, 8/16 background colors (depending on blink-enable bit), and underline enable. An excellent book on all aspects of the EGA (as well as VGA, MDA, CGA, and various Hercules cards) is "Programmer's Guide to PC & PS/2 Video Systems", by Richard Wilton, Microsoft Press, 1987. Don't program the display controller without it! Tom Almy toma@tekgvs.TEK.COM Standard Disclaimers Apply