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,26f4415626696f47 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-10-18 04:05:03 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!bloom-beacon.mit.edu!nycmny1-snh1.gtei.net!washdc3-snh1.gtei.net!news.gtei.net!feeder.qis.net!dispose.news.demon.net!news.demon.co.uk!demon!pipehawk.demon.co.uk!not-for-mail From: john.mccabe@emrad.com.nospam (John McCabe) Newsgroups: comp.lang.ada Subject: Re: please help me!!!!!! Date: Thu, 18 Oct 2001 11:04:27 GMT Organization: Emrad Ltd Message-ID: <3bceb72d.11267892@news.demon.co.uk> References: <9qm0di$25sj$1@newsreader1.mclink.it> NNTP-Posting-Host: pipehawk.demon.co.uk X-NNTP-Posting-Host: pipehawk.demon.co.uk:158.152.226.81 X-Trace: news.demon.co.uk 1003403073 nnrp-02:7924 NO-IDENT pipehawk.demon.co.uk:158.152.226.81 X-Complaints-To: abuse@demon.net X-Newsreader: Forte Free Agent 1.21/32.243 Xref: archiver1.google.com comp.lang.ada:14872 Date: 2001-10-18T11:04:27+00:00 List-Id: On Thu, 18 Oct 2001 09:33:40 +0200, "F" wrote: Look up Ada.Text_IO.Skip_Line >I want to "clean" the keyboard buffer after a user action, for example i >have a piece of a procedure such as >... >c:character; s:string(1..20); ind:integer:=1; >... >while not end_of_line loop >get(c); >s(i):=c; >i:=i+1; >end loop; > >if a user writes "hello" and then press return i see that in my s string >there is the right information but now every time i recall the procedure the >function end_of_line starts with the true value and so the while loop is >skipped, i should try to clean the keyboard buffer after every user's press >of return. >I'm so sorry for my terrible english but i must understand in which way >solve this problem. >Thank you for your attenction >bye Phosphorus > > >