@hackage echo0.1.4
A cross-platform, cross-console way to handle echoing terminal input
Categories
License
BSD-3-Clause
Maintainer
Ryan Scott <ryan.gl.scott@gmail.com>
Links
Versions
Installation
Tested Compilers
Dependencies (4)
Dependents (5)
@hackage/acme-everything, @hackage/stack, @hackage/yu-tool, @hackage/cabal-install, @hackage/hackport
Package Flags
example
(off by default)
Build the bundled example program.
echo
The base
library exposes the hGetEcho
and hSetEcho
functions for querying and setting echo status, but unfortunately, neither function works with MinTTY consoles on Windows. This is a serious issue, since hGetEcho
and 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 -fexample
flag.