Raymond Wiker wrote:
>>
>> > On 12 Feb 2023, at 11:47, Alessio Stalla wrote:
>> >
>> > Greetings everyone,
>> >
>> > is there a well-known way to do the thing in the subject,
>> > i.e. ask the user for a password in a console application,
>> > reading from the keyboard without echoing anything
Thank you very much, works like a charm!
On Sun, 12 Feb 2023 at 16:16, Raymond Wiker wrote:
>
> On 12 Feb 2023, at 11:47, Alessio Stalla wrote:
>
> Greetings everyone,
>
> is there a well-known way to do the thing in the subject, i.e. ask the
> user for a password in a console application, read
> On 12 Feb 2023, at 11:47, Alessio Stalla wrote:
>
> Greetings everyone,
>
> is there a well-known way to do the thing in the subject, i.e. ask the user
> for a password in a console application, reading from the keyboard without
> echoing anything to the terminal? Using a library is fine, S
Alessio,
I think you should be able to reliably disable local echo in a terminal using a
specific ANSI sequence. Sadly, my terminal foo is a bit rusty these days, so I
don’t remember the specifics, but following this idea should help.
Antoni
> On 12 Feb 2023, at 11:47, Alessio Stalla wrote: