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=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,573eaaf4512d4a54 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2000-11-11 17:51:10 PST Path: supernews.google.com!sn-xit-02!sn-xit-03!supernews.com!europa.netcrusader.net!208.184.7.66!newsfeed.skycache.com!Cidera!torn!news3.bellglobal.com!nf2.bellglobal.com!news20.bellglobal.com.POSTED!not-for-mail From: "Freelancer" Newsgroups: comp.lang.ada References: <8jlP5.47675$1C6.2182640@news20.bellglobal.com> <3A0DF0EB.B72F613D@acm.org> Subject: Re: Reading the keyboard buffer X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.00.2314.1300 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300 Message-ID: Date: Sun, 12 Nov 2000 01:51:10 GMT NNTP-Posting-Host: 64.229.206.237 X-Trace: news20.bellglobal.com 973993870 64.229.206.237 (Sat, 11 Nov 2000 20:51:10 EST) NNTP-Posting-Date: Sat, 11 Nov 2000 20:51:10 EST Organization: Sympatico Xref: supernews.google.com comp.lang.ada:2033 Date: 2000-11-12T01:51:10+00:00 List-Id: Jeff Carter wrote in message news:3A0DF0EB.B72F613D@acm.org... > You might want to look at Ada.Text_IO.Get_Immediate. > > -- > Jeff Carter > "I unclog my nose towards you." > Monty Python & the Holy Grail Thanks.. But from what I have tried with that, it locks until you press a key, a lot like a getch(); in C... That's not what I want... I want the loop to cycle without interruption. It checks if a key has been pressed, if that's the case, then it runs the set of instructions that correspond to the key that was pressed. So for example : loop put_line ("Hell O World!"); if (kbd_buffer = 'E') then blah blah blah.... end if; clr_kbd_buffer; end loop; Here, it would continuously write the phrase : Hell O World until the key E was pressed. Unlike with a get : loop put_line ("Hell O World"); get_immediate (char); end loop; Here it would write only once the phrase, and then wait for a key to be pressed.. I hope this clarifies a bit more what I'm looking for... Thanks for your help in advance! __________________________________________________ May your schwartz be tall and proud and most of all, effective!