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 -
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
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