WinHugs beta

Ross Paterson ross at soi.city.ac.uk
Fri Oct 7 10:16:43 EDT 2005


On Fri, Oct 07, 2005 at 03:07:21PM +0100, Neil Mitchell wrote:
> > Maybe.  I used to find the old Hugs behaviour (no buffering) quite
> > annoying, as I always make mistakes with input.  You buffer command lines,
> > don't you?
> 
> Yes, command lines are buffered and can be edited - you can even drag
> and drop the command text around with the mouse, access cut/copy/paste
> etc.
> 
> Doesn't the Haskell standard say something about line buffering with
> interact and getChar? Shouldn't the program be responsible for
> handling the backspace char? GHCi 6.4 on Windows does line buffer,
> GHCi 5.02 on Solaris does not.

The Report (21.6) says:

	For most implementations, physical files will normally be
	block-buffered and terminals will normally be line-buffered.

Of course making hSetBuffering and hSetEcho work for WinHugs would be
extra work.



More information about the Cvs-hugs mailing list