Hi, Ok, my bad - it was working on windows console all along but with the line buffering which confused me. This patch implements echoing the character for WinHugs. It doesn't buffer lines, but its probably enough for now.
Thanks Neil On 10/7/05, Ross Paterson <[EMAIL PROTECTED]> wrote: > On Thu, Oct 06, 2005 at 07:26:21PM +0100, Neil Mitchell wrote: > > > Under Unix, echoing is left to the OS. The usual OS setting is to echo > > > by characters. I thought plain hugs running in a Windows console window > > > did this too, but haven't checked. > > It doesn't. > > How odd. I just tried plain hugs (both a mingw-compiled version and the > VC-compiled one you sent me) from the explorer in NT4 and it worked as > I'd hoped it would: > > Hugs> getLine >>= print > hello > "hello" > > i.e. it echoed each character as I typed it, and I was able to correct > the input with backspace before hitting return. Same for interact. > > _______________________________________________ > Cvs-hugs mailing list > [EMAIL PROTECTED] > http://www.haskell.org/mailman/listinfo/cvs-hugs >
interact_echo.patch
Description: Binary data
_______________________________________________ Cvs-hugs mailing list [EMAIL PROTECTED] http://www.haskell.org/mailman/listinfo/cvs-hugs
