[Mono-list] Cross-Platform Managed Read from Console
Sun, 23 Feb 2003 17:08:19 -0500
Anybody have any ideas for a ReadLine for Mono?
It must be able to work Windows and Linux.
Someone mentioned GNU ReadLine, but this adds another dependency.
Basically, I would like to read from the keyboard a string. This string
be a password. I do not want the password to be echoed back to the screen.
like to use this with asking a password for SQL# from the console.
Nothing in System.Console nor .NET allows for this.
There's another suggestion I got - to use libc/msvcrt standard c library
like getch() or such. However, how would you create C# code that could
DllImport into the libc/msvcrt functions in a platform independent way?
Thanks in advance,