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

Dennis Bathory-Kitsz bathory at maltedmedia.com
Sat May 15 22:07:13 EDT 2004


>Date: Sat, 15 May 2004 20:44:50 -0500
>From: Mannequin* <mannequin at charter.net>
>To: CoCoList for Color Computer Enthusiasts <coco at maltedmedia.com>
>Subject: Re: [Coco] C and BASIC09
>Message-Id: <20040515204450.73d766bd.mannequin at charter.net>
>In-Reply-To: <40A5807E.3030201 at worldnet.att.net>
>References: <20040514200238.5a86137d.mannslists at invigorated.org>
>	<40A5807E.3030201 at worldnet.att.net>
>X-Mailer: Sylpheed version 0.9.10 (GTK+ 1.2.10; powerpc-unknown-linux-gnu)
>Mime-Version: 1.0
>Content-Type: text/plain; charset=US-ASCII
>Content-Transfer-Encoding: 7bit
>
>On Fri, 14 May 2004 22:29:18 -0400
>Robert Gault <robert.gault at worldnet.att.net> wrote:
>
>> Mannequin* wrote:
>> > I know everyone is in Chicago by now, but the few of you who are
>> > left can probably help me out here. :)
>> > 
>> > I know that there is a way to run C functions through a BASIC09
>> > program, but I was wondering if there was a way to run BASIC09
>> > procedures through a C program and receive an integer value back?
>> > 
>> > Thanks!
>> > -M.
>> > 
>
>...
>
>> If you want more details, please be very specific about what you want
>> to do. You may find that invoking Basic09 is not the best choice.
>
>I can see why it wouldn't be the best method. In your (and other's)
>opinion, what is the best way to catch key strokes from a keyboard in C
>for the Coco? I have a short function here that I got through another
>Coco list:
>
>#include <stdio.h>
>#include <sgstat.h>
>
>int inkey (void)
>{
>  char ch;
>
>  fflush (stdout);
>
>  if (getstat (1, 0))
>    return 0;
>
>  read (0, &ch, 1);
>
>  return ch;
>}
>
>Thanks for any help you can give.
>-M.
>



More information about the Coco mailing list