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=FORGED_GMAIL_RCVD, FREEMAIL_FROM autolearn=no autolearn_force=no version=3.4.6 Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Keith Thompson Newsgroups: comp.lang.ada Subject: Re: get_immediate echoe character--compiled error? Date: Sun, 01 Oct 2023 22:48:36 -0700 Organization: None to speak of Message-ID: <87fs2tr2vf.fsf@nosuchdomain.example.com> References: MIME-Version: 1.0 Content-Type: text/plain Injection-Info: dont-email.me; posting-host="6816c872b10fd8ea07c97b3fd0fa3d65"; logging-data="2953770"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18u9e32XvDIil0E2nUC/RHi" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) Cancel-Lock: sha1:rBYVNbt6zLW5WmfDRZe7B8NXP5k= sha1:m5sqTHA5VNP7JlfFXsEOPpZVkiE= Xref: news.eternal-september.org comp.lang.ada:65764 List-Id: 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? > 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); > -- Keith Thompson (The_Other_Keith) Keith.S.Thompson+u@gmail.com Will write code for food. void Void(void) { Void(); } /* The recursive call of the void */