[Coco] C and BASIC09 (Auto-discard notification)

James Jones jamesjones01 at mchsi.com
Mon May 17 08:48:00 EDT 2004


Mannequin* wrote:

>Anyway, I need it to get and process most (if not all) of the keys that
>are hit on the keyboard. I need something like the "getch ()" function
>that is used in Borland's bcc compiler for the x86. (I'll be using it in
>an "endless" loop until some criteria are met.)
>
>  
>
Hmmm. Hasn't someone already written the moral equivalent of INKEY$ that 
one can run as if it were a BASIC09 procedure? If not, you can roll your 
own. The BASIC09 docs describe the parameter passing conventions, and 
you'll want to do the I$GetStat that asks whether there's pending data 
on an SCF path. If there isn't, then you want to return some value to 
indicate that; if there is, then of course you I$Read a byte and return 
that.

James Jones



More information about the Coco mailing list