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 18:47:03 -0400 Organization: A noiseless patient Spider Message-ID: References: <87fs2tr2vf.fsf@nosuchdomain.example.com> <87lecku0bu.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 22:47:03 -0000 (UTC) Injection-Info: dont-email.me; posting-host="710d5c33788100218ae4a79b4c7ea352"; logging-data="3330641"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+k0Nql3HLvm7Q18pgh0HpNbaQUYwQ4Cz4=" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.15.1 Cancel-Lock: sha1:nIFwk8DPgCJRfTdBkTluR0W2WXE= Content-Language: en-US In-Reply-To: <87lecku0bu.fsf@nosuchdomain.example.com> Xref: news.eternal-september.org comp.lang.ada:65769 List-Id: On 10/2/23 18:27, Keith Thompson wrote: > richardthiebaud writes: >> 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 > > I don't see anything there about the character being echoed, or not. > >> If a character, either control or graphic, is available from the >> specified File or the default input file, then the character is read; >> Available is True and Item contains the value of this character. If a >> character is not available, then Available is False and the value of >> Item is not specified. Mode_Error is propagated if the mode of the file >> is not In_File. End_Error is propagated if at the end of the file. The >> current column, line and page numbers for the file are not affected. > > Are you assuming that not updating the current column, line, and page > numbers for the file implies that the character is not echoed? > > [...] > In any case, when it echos the character. it increases the current column by 1, and that does contradict the Ada Reference Manual.