[Haskell-cafe] getLine and ^C on Windows

Lyle Kopnicky lists at qseep.net
Thu Nov 13 02:43:09 EST 2008

Hi folks,
I'm using System.IO.getLine to read input in my program. I've compiled it on
Windows Vista with ghc-6.10.1. I've noticed that if I press Ctrl+C while the
program is waiting for input, it will get stuck. No keypresses can get me
out of the program - I have to kill the shell. I've tried cmd.exe,
Powershell and cygwin - same behavior.

I'm sure editline would work better, but it's overkill. I just want to read
lines of text and don't need fancy edit behavior. And I think editline
complicates the build process. I also want my program to work right in
non-interactive mode, reading redirected input.

Am I missing something?

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.haskell.org/pipermail/haskell-cafe/attachments/20081112/8dbb549f/attachment.htm

More information about the Haskell-Cafe mailing list