Path: utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!apple!sun-barr!oliveb!amiga!cbmvax!andy From: andy@cbmvax.UUCP (Andy Finkel) Newsgroups: comp.sys.amiga Subject: Re: More Basic questions Message-ID: <7077@cbmvax.UUCP> Date: 10 Jun 89 03:38:24 GMT References: <17169@louie.udel.EDU> <6877@ardent.UUCP> <41153@bbn.COM> Reply-To: andy@cbmvax.UUCP (Andy Finkel) Organization: Commodore Technology, West Chester, PA Lines: 49 In article <41153@bbn.COM> cosell@BBN.COM (Bernie Cosell) writes: >In article <6877@ardent.UUCP> rap@ez.ardent.com (Rob Peck) writes: >}In article <17169@louie.udel.EDU> jwhitman@st-louis-emh2.army.mil (Jerry Whitman) writes: >}>1. ENHANCED TEXT - It has been recommended that I utilize the appropriate >}>escape sequences for bold, italic, inverse, etc to enhance text. >}>when I 'PRINT' the ... >I've tried doing this from time to time over the years, and have yet to get >it to work. Basic doesn't *have* a CLI. You can get a handle on the window Well, here's how I would do it (if I used AmigaBASIC, that is) CLS LIBRARY "graphics.library" CALL SetSoftStyle& (Window(8),1,255) PRINT "Hi there" PRINT "This is a TEST" This will produce underlined text. Change the 1 to a 2 for BOLD text. Change it to a 4 for Italics. And you can combine the bits, of course, ie underlined italics is 5. Color change can be done in a similar manner, using the SetAPen and SetBPen calls. By changing the draw mode using SetDrMD you can play with inverse or complement modes. The style remains in effect until changed. Anyway, that's what you have to do. >The best I've been able to do is to push and pull on the raw system calls >(which works fine), but as for getting an "execute" to run something _within_ >that window... if you manage it I would be *delighted* to see what the code >looks like! No, you wouldn't :-) andy -- andy finkel {uunet|rutgers|amiga}!cbmvax!andy Commodore-Amiga, Inc. "Trouble can be purchased cheaply, though the refund may be more than you can afford." Any expressed opinions are mine; but feel free to share. I disclaim all responsibilities, all shapes, all sizes, all colors.