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

Version on this page:0.1.3
LTS Haskell 8.2:0.1.3
Stackage Nightly 2017-02-20:0.1.3
Latest on Hackage:0.1.3
BSD3 licensed by Ryan Scott
Maintained by Ryan Scott

Module documentation for 0.1.3


Hackage Hackage Dependencies [Haskell Programming Language][] [BSD3 License][tl;dr Legal: BSD3] Build Windows build "echo package on Hackage" []: "The Haskell Programming Language" [tl;dr Legal: BSD3]: "BSD 3-Clause License (Revised)"

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:
Used by 1 package:
comments powered byDisqus