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-91-241.ec2.internal X-Spam-Level: X-Spam-Status: No, score=-1.0 required=3.0 tests=FREEMAIL_FROM,NICE_REPLY_A autolearn=ham autolearn_force=no version=3.4.6 Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: richardthiebaud Newsgroups: comp.lang.ada Subject: Re: get_immediate echoe character--compiled error? Date: Mon, 2 Oct 2023 16:07:49 -0400 Organization: A noiseless patient Spider Message-ID: References: <87fs2tr2vf.fsf@nosuchdomain.example.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Mon, 2 Oct 2023 20:07:49 -0000 (UTC) Injection-Info: dont-email.me; posting-host="b2b4138bc43a6837da3f434592450ccc"; logging-data="3269243"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/w6+pnoeMd4V1a5FlfowFfUnDvyBD93NU=" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.15.1 Cancel-Lock: sha1:rPXJsUI7KshKFD4z1TB46tgFK+E= In-Reply-To: <87fs2tr2vf.fsf@nosuchdomain.example.com> Content-Language: en-US Xref: news.eternal-september.org comp.lang.ada:65766 List-Id: On 10/2/23 01:48, Keith Thompson wrote: > richardthiebaud writes: >> When I build and run the following program using Gnat 11 in Linux Mint >> 21.2, the keys I press are echoed on the console. According to the Ada >> Reference Manual, they should not be echoed. Is this a compiler error? > > Where does the ARM say that? https://www.adaic.org/resources/add_content/standards/05rm/html/RM-A-10-7.html > >> with ada.text_io; use ada.text_io; >> procedure test3 is >> c: character; >> avail: boolean; >> begin >> loop >> loop >> Get_Immediate(c, Avail); >> if Avail then >> exit; >> end if; >> delay 0.01; >> end loop; >> end loop; >> end test3; >> >> This does not happen if I call get_immediate without the avail >> parameter, i.e. get_immediate(c); >> >