[Haskell-cafe] Unbuffered character IO under Windows XP?

2007-12-28 Thread Peter Schmitz
module Main(main) where import System.IO main = do b1 - hGetBuffering stdin print b1 b2 - hGetBuffering stdout print b2 -- not sure if these help, or are needed hSetBuffering stdin NoBuffering hSetBuffering stdout NoBuffering b1 - hGetBuffering stdin print b1 b2 -

Re: [Haskell-cafe] Unbuffered character IO under Windows XP?

2007-12-28 Thread Ryan Ingram
I have this problem as well and would love to hear if there is an answer. I think there are some windows terminal settings that the GHC runtime should twiddle when you change the buffering state on stdin, but I don't know exactly what is involved. -- ryan On 12/28/07, Peter Schmitz [EMAIL

Re[2]: [Haskell-cafe] Unbuffered character IO under Windows XP?

2007-12-28 Thread Bulat Ziganshin
Hello Ryan, Saturday, December 29, 2007, 7:14:25 AM, you wrote: Is it possible to have unbuffered character IO under Windows XP? I have this problem as well and would love to hear if there is an answer. once i had a hard day trying to figure out how to to the same in Unix. in Windows, it was