[fpc-pascal] Readln a password
Dmitry Boyarintsev
skalogryz.lists at gmail.com
Sun Nov 27 16:26:36 CET 2016
On Sun, Nov 27, 2016 at 8:24 AM, Adriaan van Os <fpc at microbizz.nl> wrote:
> I wonder what the recommended way is to readln a password from console, as
> a standard Readln echoes the password.
>
> 1. SetConsoleMode seems to be Windows-specific
>
I'd think you want something simlar on unix.
Take a look at man 4 termios
specifically at local flag named "ECHO".
you want to disable it via tcsetattr() (TermIO unit)
thanks,
Dmitry
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20161127/edb0a6ca/attachment.html>
More information about the fpc-pascal
mailing list