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=0.0 required=3.0 tests=FREEMAIL_FROM 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: get_immediate echoe character--compiled error? Date: Sun, 1 Oct 2023 22:42:39 -0400 Organization: A noiseless patient Spider Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Mon, 2 Oct 2023 02:42:39 -0000 (UTC) Injection-Info: dont-email.me; posting-host="b2b4138bc43a6837da3f434592450ccc"; logging-data="2874513"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/z/4CTFsN+X91KDT6FtnyXgPrJeH3jP6w=" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.15.1 Cancel-Lock: sha1:wxrbO5krQfx/725A2LjNHOr2x4M= Content-Language: en-US Xref: news.eternal-september.org comp.lang.ada:65763 List-Id: 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? 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);