base library exposes the
hSetEcho functions for querying and setting echo status, but unfortunately, neither function works with MinTTY consoles on Windows. This is a serious issue, since
hSetEcho are often used to disable input echoing when a program prompts for a password, so many programs will reveal your password as you type it on MinTTY!
This library provides an alternative interface which works with both MinTTY and other consoles. An example is included which demonstrates how one might prompt for a password using this library. To build it, make sure to configure with the
Safe, on GHC 7.2 to work around an old GHC bug.
- The MinTTY-detection portion of this library has been split off into
mintty, on which
- Use more efficient implementation for
Win32-2.5or later if possible.
- First version.