[Haskell-cafe] getChar (NoBuffering) not working on Windows

Francesco Ariis fa-ml at ariis.it
Thu Jul 20 21:02:36 UTC 2017


On Tue, Jul 18, 2017 at 08:29:27PM +0200, Francesco Ariis wrote:
> Hello list,
> 
>     I am writing a small console application.
> 
> Today I was bitten by #2189 [1] ("hSetBuffering stdin NoBuffering doesn't
> work on Windows"). To reproduce:
> 
> [...]
> 
> Is there any sensible (cross-platform) way of working around this?

I'll answer myself:

    http://hackage.haskell.org/package/hidden-char

(works with concurrency too).


More information about the Haskell-Cafe mailing list