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

[ bsd3, library, system ] [ Propose Tags ] [ Report a vulnerability ]

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.


[Skip to Readme]

Flags

Automatic Flags
NameDescriptionDefault
example

Build the bundled example program.

Disabled

Use -f <flag> to enable a flag, or -f -<flag> to disable that flag. More info

Downloads

Note: This package has metadata revisions in the cabal description newer than included in the tarball. To unpack the package including the revisions, use 'cabal get'.

Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees

Candidates

  • No Candidates
Versions [RSS] 0.1, 0.1.1, 0.1.2, 0.1.3, 0.1.4
Change log CHANGELOG.md
Dependencies base (>=4.3 && <5), echo, mintty (>=0.1 && <0.2), process (>=1.0.1.1 && <1.7), Win32 (>=2 && <3) [details]
License BSD-3-Clause
Copyright (C) 2016-2017 Ryan Scott
Author Ryan Scott
Maintainer Ryan Scott <ryan.gl.scott@gmail.com>
Revised Revision 1 made by ryanglscott at 2017-03-15T15:15:05Z
Category System
Home page https://github.com/RyanGlScott/echo
Bug tracker https://github.com/RyanGlScott/echo/issues
Source repo head: git clone https://github.com/RyanGlScott/echo
Uploaded by ryanglscott at 2017-01-31T02:42:47Z
Distributions Arch:0.1.4, Debian:0.1.3, Fedora:0.1.4, LTSHaskell:0.1.4, NixOS:0.1.4, Stackage:0.1.4, openSUSE:0.1.4
Reverse Dependencies 3 direct, 5 indirect [details]
Executables password
Downloads 37238 total (211 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs available [build log]
Last success reported on 2017-01-31 [all 1 reports]

Readme for echo-0.1.3

[back to package description]

echo

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.