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.9 required=3.0 tests=NICE_REPLY_A, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.6 Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: "G.B." Newsgroups: comp.lang.ada Subject: Re: get_immediate echoe character--compiled error? Date: Tue, 3 Oct 2023 23:00:40 +0200 Organization: A noiseless patient Spider Message-ID: References: Reply-To: nonlegitur@notmyhomepage.de MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Tue, 3 Oct 2023 21:00:40 -0000 (UTC) Injection-Info: dont-email.me; posting-host="78df64d6b629a0a5e32c0dd94b99ec96"; logging-data="3933509"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19XbyHrr8t2dAZzsvUw8uuxTwQvdfGQdmU=" User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0) Gecko/20100101 Thunderbird/102.15.1 Cancel-Lock: sha1:+vA0hmtJQp59ra+A/SJYz1nzoWQ= Content-Language: en-US In-Reply-To: Xref: news.eternal-september.org comp.lang.ada:65772 List-Id: On 02.10.23 04:42, richardthiebaud wrote: > 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. Which console? Can you try to run a C program in the same console that tests for it to be y TTY? See Simon Wright's link to GNAT's implementation. The C program would be calling isatty(0) or isatty(fileno(your_stream)); Some IDEs have a console window that is not a TTY in the sense of termios(4)/tcsetattr(3). Echoing is different, then.