From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on ip-172-31-65-14.ec2.internal X-Spam-Level: X-Spam-Status: No, score=-3.2 required=3.0 tests=BAYES_00,NICE_REPLY_A, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 Path: eternal-september.org!reader01.eternal-september.org!news.szaf.org!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: Niklas Holsti Newsgroups: comp.lang.ada Subject: Re: wait does not perform as expected Date: Thu, 23 Feb 2023 19:15:57 +0200 Organization: Tidorum Ltd Message-ID: References: <75c3990e-eaab-47eb-bdba-3827b9fd4751n@googlegroups.com> <6eacc599-b9a9-4c89-9122-862825d23423n@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Trace: individual.net Y2Yph3wSxwrci8HZ9bsedw3cmWENrh5AqX3eHio+saI8wI/CQl Cancel-Lock: sha1:QMvhFUKDWNOhu60L0d5oDFBvJlg= User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:102.0) Gecko/20100101 Thunderbird/102.6.1 Content-Language: en-US In-Reply-To: <6eacc599-b9a9-4c89-9122-862825d23423n@googlegroups.com> Xref: reader01.eternal-september.org comp.lang.ada:64969 List-Id: On 2023-02-23 16:33, Daniel Gaudry wrote: > On Thursday, February 23, 2023 at 3:26:09 PM UTC+1, AdaMagica wrote: >> Niklas Holsti schrieb am Mittwoch, 22. Februar 2023 um 18:36:06 UTC+1: [skip answers] > Hi, > Many thanks for your time and answers > My problem under ubuntu is that get_immediate pauses the program if no key is hit. > Therefore available is not set and this little routine cannot perform as I want. > Any idea on how i can write such a simple routine that works ?? Did you try it /without/ the Look_Ahead, as I suggested? If you did, please post your new code and explain: - how you want it to work, and - how it behaves when you try it, and - why that is not what you want.