AmigaActive (166/1728)

From:paul
Date:4 Jun 2001 at 14:34:18
Subject:Re: Header Files (StormC v3)

--- In amigactive@y..., David Bateman <iklett@h...> wrote:
> Hello paul@l...
> i am just re-learning ANSI C before i go onto amiga specific
> things, so my programs are text based menu driven, thats why i
> wanna only accept one character without having to press return.
>
> if its not possible, then i'll just have to skip that part...

You could always do something like this:

FILE *myinput;
myinput = fopen("RAW:0/0/640/480/title","rb"); /* what's the ANSI
code for read/write? */

Now use myinput instead of stdin. This will open a new window in RAW
mode where you get the keypresses directly.



Paul

Quote carefully and read all ADMIN:README mails

Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/