haskell / haskeline

A Haskell library for line input in command-line programs.
https://hackage.haskell.org/package/haskeline
BSD 3-Clause "New" or "Revised" License
221 stars 75 forks source link

Add the new function `waitForAnyKey`. #108

Closed judah closed 5 years ago

judah commented 5 years ago

Add the new function waitForAnyKey :: ... => InputT m Bool.

It waits for a single key press and then returns; and it returns False at EOF or a ctrl-D.

Fixes #74.


This change is Reviewable