[Haskell-cafe] getLine and ^C on Windows

J. Garrett Morris jgmorris at cecs.pdx.edu
Thu Nov 13 04:23:58 EST 2008


I've had the same experience with runghc in GHC 6.10.1 on Vista.

 /g

2008/11/12 Lyle Kopnicky <lists at qseep.net>:
> 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?
> Thanks,
> Lyle
> _______________________________________________
> Haskell-Cafe mailing list
> Haskell-Cafe at haskell.org
> http://www.haskell.org/mailman/listinfo/haskell-cafe
>
>



-- 
I am in here


More information about the Haskell-Cafe mailing list