[Haskell-cafe] unbuffered raw keyboard input on Windows
David Barbour
dmbarbour at gmail.com
Wed Jul 6 23:48:47 CEST 2011
You could try the SDL package to support user input.
2011/7/6 José Romildo Malaquias <j.romildo at gmail.com>
> Hello.
>
> I want to write a Haskell console application (a game) in ghc where the
> user will interact using the keyboard. I need to read the keys as soon
> as they are typed and without echoing to the console.
>
> Although Haskell provides this capability in the standard libraries
> (using hSetEcho and hSetBuffering from System.IO), it does not work on
> Windows due to a bug (http://hackage.haskell.org/trac/ghc/ticket/2189).
>
> I have tried installing packages like vty, hscurses, and ncurses, but
> they did not install on Windows.
>
> Which workarounds are available for that?
>
> Romildo
>
> _______________________________________________
> Haskell-Cafe mailing list
> Haskell-Cafe at haskell.org
> http://www.haskell.org/mailman/listinfo/haskell-cafe
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/haskell-cafe/attachments/20110706/9fc05c27/attachment.htm>
More information about the Haskell-Cafe
mailing list