Quoting Bob Tanner (tanner at real-time.com):
> Quoting Mike Bresnahan (mbresnah at visi.com):
> > This was asked recently on the TCJUG.  Noone offered a solution other than
> > using JNI to call either getpass(3) or tcsetattr(2).  Me thinks the Java
> > designers decided that terminal I/O was not part of the least common
> > demoninator.
> 
> I've been messing around with the streams and experimenting with replacing
> System.in, but I can't keep the keystrokes from appearing on the console.
> 
> getpass(3) or tcsetattr(2) Eeek! I don't think those will work under Losedows.
> 

Well, I got this working using JNI and tcsetattr(2). It was actually very
simple. 

Read the JNI stuff, it should be just as easy for someone to write a windows DLL
that does the same thing my share lib does. Of course, that person will not be
me, since I don't have a Windows dev environment.

I am actually very surprised how easy JNI makes hooking into native code.

-- 
Bob Tanner <tanner at real-time.com>         | Phone : (952)943-8700
http://www.mn-linux.org, Minnesota, Linux | Fax   : (952)943-8500
Key fingerprint =  6C E9 51 4F D5 3E 4C 66 62 A9 10 E5 35 85 39 D9