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 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 21:42:47 PST Path: supernews.google.com!sn-xit-02!sn-xit-03!supernews.com!xfer13.netnews.com!netnews.com!howland.erols.net!cyclone2.usenetserver.com!news-out.usenetserver.com!newsfeed2.earthlink.net!newsfeed.earthlink.net!newsmaster1.prod.itd.earthlink.net!newsread2.prod.itd.earthlink.net.POSTED!not-for-mail Message-ID: <3A0E2DCF.8548027E@acm.org> From: Jeff Carter X-Mailer: Mozilla 4.7 [en] (Win98; U) X-Accept-Language: en MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: Reading the keyboard buffer References: <8jlP5.47675$1C6.2182640@news20.bellglobal.com> <3A0DF0EB.B72F613D@acm.org> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Date: Sun, 12 Nov 2000 05:42:42 GMT NNTP-Posting-Host: 199.174.133.61 X-Complaints-To: abuse@earthlink.net X-Trace: newsread2.prod.itd.earthlink.net 974007762 199.174.133.61 (Sat, 11 Nov 2000 21:42:42 PST) NNTP-Posting-Date: Sat, 11 Nov 2000 21:42:42 PST Organization: EarthLink Inc. -- http://www.EarthLink.net Xref: supernews.google.com comp.lang.ada:2036 Date: 2000-11-12T05:42:42+00:00 List-Id: Freelancer wrote: > > 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... > > 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.. You might want to look at Ada.Text_IO.Get_Immediate. There are 4 procedures by that name, and one of them should do what you want. -- Jeff Carter "I unclog my nose towards you." Monty Python & the Holy Grail