A cross-platform, cross-console way to handle echoing terminal input
|LTS Haskell 20.15:||0.1.4|
|Stackage Nightly 2023-03-20:||0.1.4|
|Latest on Hackage:||0.1.4|
Maintained by Ryan Scott
This version can be pinned in stack with:
Module documentation for 0.1.4
Depends on 3 packages(full list with versions):
Used by 2 packages in lts-18.28(full list with versions):
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.