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

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]
Tested with ghc ==7.0.4, ghc ==7.2.2, ghc ==7.4.2, ghc ==7.6.3, ghc ==7.8.4, ghc ==7.10.3, ghc ==8.0.2, ghc ==8.2.2, ghc ==8.4.4, ghc ==8.6.5, ghc ==8.8.4, ghc ==8.10.2
License BSD-3-Clause
Copyright (C) 2016-2017 Ryan Scott
Author Ryan Scott
Maintainer Ryan Scott <ryan.gl.scott@gmail.com>
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 2021-02-18T01:24:53Z
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 37262 total (220 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs available [build log]
Last success reported on 2021-02-18 [all 1 reports]

Readme for echo-0.1.4

[back to package description]

echo

Hackage Hackage Dependencies Haskell Programming Language BSD3 License Linux 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.