From: | David Bateman |
Date: | 4 Jun 2001 at 13:58:24 |
Subject: | Re: Header Files (StormC v3) |
Hello paul@lagernet.clara.co.uk
On 04-Jun-01, you wrote:
> Yep, conio is a DOS include file. So I assume getch() is DOS too.
>
> You can't really use getch() in AmigaDOS without resulting to non-
> ANSI code. AmigaDOS CON: windows default to 'cooked' mode where the
> input string is never passed to the application until enter (or EOF?)
> is key pressed.
>
> The way around this is to use 'raw' mode. There's a function in the
> DOS library to switch between raw & cooked modes but I don't have the
> RKMs with me at work so I can't tell you the name :)
>
> After the console is in RAW mode you can use the regular AmigaDOS
> file IO functions. You can get the filehandle with Output() / Input
> ().
>
> What kind of program are you writing that needs raw input from the
> CLI? Wouldn't it be much better to open a Window and get the input
> from there?
>
> p.s.
> You can't normally go around using system header files from other
> compilers/platforms.
>
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...
Regards
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)
Never have a companion that casts you in the shade.
-- Baltasar Gracian
Quote carefully and read all ADMIN:README mails
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/