Package0.1.4System
echo
A cross-platform, cross-console way to handle echoing terminal input
- Version0.1.4
- CategorySystem
- LicenceBSD-3-Clause
- AuthorRyan Scott
- MaintainerRyan Scott <ryan.gl.scott@gmail.com>
- Homepagegithub.com/RyanGlScott/echo
- Pinned byhackage echo 0.1.4
- Sourcehackage.haskell.org/package/echo-0.1.4
Modules
2 modules- System.IO.Echo9Exports functions that handle whether or not terminal input is handled in a way
Internal modules · 1
- System.IO.Echo.Internal14Exports functions that handle whether or not terminal input is handled in a way
Description
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.
Depends on
2 packages- base-4.20.2.0with GHC
- process-1.6.26.1with GHC