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 ability to silence input prompts when using file interaction #123

Open merijn opened 4 years ago

merijn commented 4 years ago

If I redirect stdin so that inputs are read from a file, the input prompts are still displayed to stdout (with newlines chopped off). This looks rather ugly and amateurish. I'd like to be able to configure the prompt functionality to only prompt in interactive mode.