id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc	os	architecture	failure	difficulty	testcase	blockedby	blocking	related
2189	hSetBuffering stdin NoBuffering doesn't work on Windows	FalconNL		"The following program repeats inputted characters until the escape key is pressed.


{{{
import IO
import Monad
import Char

main :: IO ()
main = do hSetBuffering stdin NoBuffering
          inputLoop
          
inputLoop :: IO ()
inputLoop = do i <- getContents
               mapM_ putChar $ takeWhile ((/= 27) . ord) i
}}}


Because of the ""hSetBuffering stdin NoBuffering"" line it should not be necessary to press the enter key between keystrokes. This program works correctly in WinHugs (sep 2006 version). However, GHC 6.8.2 does not repeat the characters until the enter key is pressed. The problem was reproduced with all GHC executables (ghci, ghc, runghc, runhaskell), using both cmd.exe and command.com on Windows XP Professional."	bug	new	normal	7.6.2	libraries/base	6.8.2		hsetbuffering buffering buffer	camio igloo Deewiant ryani sof ddiaz Artyom.Kazak@… malaquias@… dagitj@…	Windows	x86	None/Unknown	Unknown				
