A cross-platform, cross-console way to handle echoing terminal input

Version on this page:0.1.3
LTS Haskell 13.22:0.1.3
Stackage Nightly 2019-05-21:0.1.3
Latest on Hackage:0.1.3

See all snapshots echo appears in

BSD-3-Clause licensed by Ryan Scott
Maintained by Ryan Scott

Module documentation for 0.1.3

There are no documented modules for this package.


Hackage Hackage Dependencies Haskell Programming Language BSD3 License Build Windows build

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.


0.1.3 [2017-01-30]

  • The MinTTY-detection portion of this library has been split off into mintty, on which echo now depends.

0.1.2 [2017-01-09]

  • Use more efficient implementation for bracketInputEcho.

0.1.1 [2017-01-07]

  • Use System.Win32.MinTTY from Win32-2.5 or later if possible.

0.1 [2016-12-22]

  • First version.
Depends on 3 packages:
Used by 4 packages:
comments powered byDisqus