@hackage / echo

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

Latest0.1.4

About

Metadata

  • Last updated , by ryanglscott
  • License BSD-3-Clause
  • Categories Systems Programming
  • Maintained by: Ryan Scott <ryan.gl.scott@gmail.com>

  • Lottery factor: 0

Links

Installation

Tested Compilers

  1. 8.10.2
  2. 8.8.4
  3. 8.6.5
  4. 8.4.4
  5. 8.2.2
  6. 8.0.2
  7. 7.10.3

Package Flags

Use the -f option with cabal commands to enable flags

    example (off by default)

    Build the bundled example program.

Readme

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.