From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=0.2 required=5.0 tests=BAYES_00,INVALID_MSGID, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,36fa1a0bdeea27b1 X-Google-Attributes: gid103376,public From: Stephen Leake Subject: Re: Reading from keyboard (was: Here's a quicky - please help!) Date: 1997/05/06 Message-ID: <336F94E6.3359@gsfc.nasa.gov>#1/1 X-Deja-AN: 239810768 References: <01bc5a54$49a60120$9a82a6c3@swh2tpv> Organization: NASA Goddard Space Flight Center -- Greenbelt, Maryland USA Reply-To: Stephen.Leake@gsfc.nasa.gov Newsgroups: comp.lang.ada Date: 1997-05-06T00:00:00+00:00 List-Id: Chris Westcott wrote: > > Please, please,please help me. > I am fairly new to ADA but have been programming in Pascal for some time > now. > Could somebody please help me in reading from the keyboard!! It's more polite to put the real subject in the subject line. A lot of us just ignore articles that only say "Please help!". You caught me at the end of the day, when I don't have the energy for real work :-) > > By doing: > GET(inkey); > where inkey is a character, GET waits for a cariage return before accepting > the key. > I want to get the key without pressing . > Can you please help. See Text_IO.Get_Immediate. This is supposed to not wait for the , but it depends on whether your compiler does this or not. The latest version of GNAT does, at least for some platforms. (It is also polite to say what platform you are using, and what version of what compiler). > > Also I am trying to use the cursor keys but have no idea how to get them to > work. Is there some way of reading them. (Scan codes/ or ASCII) I can't help you there, but there are some packages that have been written to do this. Start at the Ada home web page: http://www.adahome.com/ and look around for resources and/or source code libraries. You'll find it, and lots of other good stuff, to. > > Thank you > Chris Westcott. You're welcome > > PS- I am a student and I won't go away!!!! This is NOT an effective threat; it's easy to ignore annoying posts (just skip any subject line that is not meaningfull !-) -- - Stephe