[Mono-list] Cross-Platform Managed Read from Console
Daniel Morgan
danmorg@sc.rr.com
Sun, 23 Feb 2003 17:08:19 -0500
Hello,
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
would
be a password. I do not want the password to be echoed back to the screen.
I would
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
functions
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,
Daniel