echo

A cross-platform, cross-console way to handle echoing terminal input https://github.com/RyanGlScott/echo

LTS Haskell 8.11:0.1.3
Stackage Nightly 2017-04-22:0.1.3
Latest on Hackage:0.1.3
BSD3 licensed by Ryan Scott
Maintained by Ryan Scott

Module documentation for 0.1.3

echo

Hackage Hackage Dependencies [Haskell Programming Language][Haskell.org] [BSD3 License][tl;dr Legal: BSD3] Build Windows build

http://hackage.haskell.org/package/echo "echo package on Hackage" [Haskell.org]: http://www.haskell.org "The Haskell Programming Language" [tl;dr Legal: BSD3]: https://tldrlegal.com/license/bsd-3-clause-license-%28revised%29 "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.

Changes

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