Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!csd4.milw.wisc.edu!bbn!bbn.com!cosell From: cosell@bbn.com (Bernie Cosell) Newsgroups: comp.sys.amiga Subject: Re: More Basic questions Message-ID: <41153@bbn.COM> Date: 9 Jun 89 12:22:13 GMT References: <17169@louie.udel.EDU> <6877@ardent.UUCP> Sender: news@bbn.COM Reply-To: cosell@BBN.COM (Bernie Cosell) Organization: Bolt Beranek and Newman Inc., Cambridge MA Lines: 27 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 ... }>sequence from Basic I get the escape sequence displayed as text. How do I }>get Basic to put out the escape sequence as an escape sequence rather than }>text? } }As I remember when Amiga Basic was created, we discovered that the PRINT }command filtered the output and thus gives the result you have noticed. }Your best bet, therefore, is to send out system commands (I don't use }BASIC, so I forget which command it is) to ask AmigaDOS to "TYPE filename" }where filename is a file that contains the string, with escape sequences, }that you want to direct to your CLI/SHELL/Con if that is indeed possible }from within BASIC. 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 that Basic is using, but getting all the ducks in a row so that some non-basic program can correctly do ANYTHING to that window is no mean feat. 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! /Bernie\