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.0 required=3.0 tests=none autolearn=ham autolearn_force=no version=3.4.6 Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Simon Wright Newsgroups: comp.lang.ada Subject: Re: get_immediate echoe character--compiled error? Date: Wed, 04 Oct 2023 12:38:51 +0100 Organization: A noiseless patient Spider Message-ID: References: <87fs2tr2vf.fsf@nosuchdomain.example.com> <87lecku0bu.fsf@nosuchdomain.example.com> <874jj75joi.fsf@nosuchdomain.example.com> MIME-Version: 1.0 Content-Type: text/plain Injection-Info: dont-email.me; posting-host="41c12c1851762027ac3899a04691550a"; logging-data="168070"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18dU+kZ+cj3XchtbkdRMhV4wh1zgXRAIyM=" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (darwin) Cancel-Lock: sha1:YwSSsyGBI/VskaQ9FxZdPaE1Mb0= sha1:GowzpsPJaIoaWtW+sq8vTGEDebA= Xref: news.eternal-september.org comp.lang.ada:65779 List-Id: "Jeffrey R.Carter" writes: > On 2023-10-04 10:22, Simon Wright wrote: >> Or, alternatively, don't turn echoing off at all - what's the use >> case >> for turning it off? After all, the ARM says nothing about it. > > The use case is inputting passwords and the like. See Password_Line > (https://github.com/jrcarter/Encryption-utilities/blob/master/password_line.ads) > for an example. Note that this has identical behavior with GNAT/Linux > and ObjectAda/Windows. Obviously you need to turn echoing off for password input. But neither the ARM nor the GNAT RM says anything about Get_Immediate's echoing behaviour, so it's hard to explain why OA does the same thing. Does its manual specify this behaviour?