Re: WinHugs beta
Ross Paterson <[email protected]>
| Newsgroups | gmane.comp.lang.haskell.cvs.hugs |
|---|---|
| Message-ID | <20051007141643.GA13905__44551.4685394757$1128694737$gmane$org@soi.city.ac.uk> |
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.