From: Jon Bright <jon@si...> - 2005-04-08 06:36:54
I'm not sure if this list or mingw-users is the more appropriate place
for this query - please let me know if I got it wrong.
I've done the Win32 port for monotone (http://venge.net/monotone), using
MinGW. One of the things monotone needs to do is ask the user for a
password, which needs not to be echoed. Implementing this for normal
windows command shells was easy (in fact, I found about 3 different ways
to make it work - I'm currently using SetConsoleMode to turn off
ENABLE_ECHO_INPUT). Getting this to work in MSYS's rxvt appears to be
impossible. Having tried lots and lots of different solutions, the only
way I found of doing this was to emit the vt100 sequences to set the
background color the same as the foreground color, which... is non-ideal.
Am I stupid? What's the recommended way of doing this?
Silicon Circus Ltd.