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-74-118.ec2.internal X-Spam-Level: X-Spam-Status: No, score=0.0 required=3.0 tests=BAYES_40,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.6 X-Received: by 2002:a05:6214:627:b0:435:2dcd:d6c0 with SMTP id a7-20020a056214062700b004352dcdd6c0mr11840047qvx.100.1646742038912; Tue, 08 Mar 2022 04:20:38 -0800 (PST) X-Received: by 2002:a5b:9cc:0:b0:61d:f7ba:7fc with SMTP id y12-20020a5b09cc000000b0061df7ba07fcmr11225104ybq.434.1646742038759; Tue, 08 Mar 2022 04:20:38 -0800 (PST) Path: eternal-september.org!reader02.eternal-september.org!border1.nntp.dca1.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Tue, 8 Mar 2022 04:20:38 -0800 (PST) In-Reply-To: Injection-Info: google-groups.googlegroups.com; posting-host=94.60.27.164; posting-account=3cDqWgoAAAAZXc8D3pDqwa77IryJ2nnY NNTP-Posting-Host: 94.60.27.164 References: <1bd9b7ee-9195-44b3-8de2-c018a44b7eden@googlegroups.com> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: Subject: Re: Get_Immediate does not read CR in CRLF pairs From: Marius Amado-Alves Injection-Date: Tue, 08 Mar 2022 12:20:38 +0000 Content-Type: text/plain; charset="UTF-8" Xref: reader02.eternal-september.org comp.lang.ada:63587 List-Id: On Tuesday, 8 March 2022 at 09:06:07 UTC, Jeffrey R.Carter wrote: > Get_Immediate returns the character corresponding to the key pressed. What is > the character for the Enter key? GNAT has decided to return LF in that case. Surely Text_IO is not scanning the keyboard. Or it should not. The OS does. Text_IO should just get the character from the OS. Without assumptions that it is this or that key. For me the ARM is very clear: "Reads the next character, either control or graphic, from the specified File or the default input file. " A.10.7 (10/3) That is why I dont understand the issue. My guess was that redirection on the Windows command line was the culprit (and it does interfere a bit, but not enough to explain all). Thanks.