From: Marius Amado-Alves <amado.alves@gmail.com>
Subject: Re: Get_Immediate does not read CR in CRLF pairs
Date: Tue, 8 Mar 2022 04:20:38 -0800 (PST) [thread overview]
Message-ID: <d05cc258-7ba9-4bf3-a40d-c43be08528cdn@googlegroups.com> (raw)
In-Reply-To: <t0769t$id9$1@dont-email.me>
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.
next prev parent reply other threads:[~2022-03-08 12:20 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-03-08 7:45 Get_Immediate does not read CR in CRLF pairs Marius Amado-Alves
2022-03-08 7:46 ` Luke A. Guest
2022-03-08 12:08 ` Marius Amado-Alves
2022-03-08 14:57 ` Luke A. Guest
2022-03-08 16:43 ` Marius Amado-Alves
2022-03-08 17:21 ` Dennis Lee Bieber
2022-03-08 17:26 ` Dennis Lee Bieber
2022-03-09 9:11 ` Luke A. Guest
2022-03-08 8:03 ` Dmitry A. Kazakov
2022-03-08 9:06 ` Jeffrey R.Carter
2022-03-08 12:20 ` Marius Amado-Alves [this message]
2022-03-08 12:53 ` Dmitry A. Kazakov
2022-03-09 11:26 ` Marius Amado-Alves
2022-03-09 12:54 ` Dmitry A. Kazakov
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox