AmigaActive (167/1728)

From:David Bateman
Date:4 Jun 2001 at 14:36:25
Subject:Re: Header Files (StormC v3)

Hello paul@lagernet.clara.co.uk

On 04-Jun-01, you wrote:

> --- 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.
>

thanks for the help, think i'll use gcc in linux to do my ansi "training"
then go back to stormc later on when i'm doing amiga specific stuff such as
windows etc.

Regards



Team AMIGA
ICQ:22288065
http://www.robotheaven.freeserve.co.uk
http://www.hvymetal.u-net.com

EZTower/Amiga A1200
OS3.9/MorphOS/Linux(2.2.10 kernel)/MUIPPC
64Mb/PPC 603e(200/040)
2.1Gb HD/8x CD-ROM/PortJnr/USR 56k/250MB ZIP
17" SVGA/BVisionPPC/CGX v4.2(pre 8)

"What do you want from us? We're Evil!"

Quote carefully and read all ADMIN:README mails

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