Path: utzoo!utgpu!news-server.csri.toronto.edu!mailrus!uwm.edu!wuarchive!usc!apple!amdahl!starsoft!david From: david@starsoft.UUCP (Dave Lowrey) Newsgroups: comp.sys.amiga Subject: Re: Help with C!!!! Message-ID: Date: 14 Aug 90 10:35:20 GMT References: <3711@monu1.cc.monash.oz> Lines: 28 >In article <3711@monu1.cc.monash.oz> ins624y@monu3.cc.monash.edu.au (mr r. walker) writes: > >This is a shriek for help with C. >All I want to do it read in a _single_ character from the >keyboard. I have tried getchar() getc() etc etc BUT all >of them expect you to press the return key after typing >the character --- this is unacceptable as I want to use >the keystrokes as commands for a spreadsheet I am writing. > > >HELP!!! Something in vanilla C (I have Aztex 3.6a) would be >nice, as this has to run on a BSD Unix system as well. Failing >that some Amiga-specific thing would be OK (using CON: or something). > Your shriek has been heard!!! :-) You need to put your console handler into RAW mode. This is easy with manx. Look up the ioctl() function. It has parms to set and reset raw mode. -- ---------------------------------------------------------------------------- These words be mine. The company doesn't care, because I am the company! :-) Dave Lowrey | david@starsoft or {uhnix1,moray}!starsoft!david Starbound Software Group | Houston, TX | "Dare to be stupid!" -- Weird Al Yankovich