RE: hSetBuffering stdin NoBuffering messes up terminal

2003-10-21 Thread Simon Marlow
If I understand recent changes correctly, this is a deliberate decision. The idea is that if you wanted to write a program like 'stty' in Haskell, you'd be very disappointed if the terminal settings got switched back the moment your Haskell program terminated. It's

Re: hSetBuffering stdin NoBuffering messes up terminal

2003-10-21 Thread David Roundy
On Tue, Oct 21, 2003 at 04:39:27PM +0100, Simon Marlow wrote: It's deliberate, but (AFAIK) not for those reasons. The idea is so that simple, stupid programs do what the programmer expects (and saving the list from lots of my program doesn't get any input until the user hits Return

RE: hSetBuffering stdin NoBuffering messes up terminal

2003-10-21 Thread Glynn Clements
Simon Marlow wrote: If I understand recent changes correctly, this is a deliberate decision. The idea is that if you wanted to write a program like 'stty' in Haskell, you'd be very disappointed if the terminal settings got switched back the moment your Haskell program

Re: hSetBuffering stdin NoBuffering messes up terminal

2003-10-17 Thread David Roundy
On Tue, Oct 14, 2003 at 09:11:47AM -0400, I wrote: On my terminal (aterm), calling hSetBuffering stdin NoBuffering within my program messes up the terminal settings somehow, so that backspace no longer works when I run my program (without the NoBuffering) a second time. [...] A

Re: hSetBuffering stdin NoBuffering messes up terminal

2003-10-17 Thread Ferenc Wagner
Glynn Clements [EMAIL PROTECTED] writes: David Roundy wrote: On my terminal (aterm), calling hSetBuffering stdin NoBuffering within my program messes up the terminal settings somehow [...] Disabling buffering with hSetBuffering not only disables the user-space buffering (analogous to

Re: hSetBuffering stdin NoBuffering messes up terminal

2003-10-17 Thread John Meacham
On Tue, Oct 14, 2003 at 03:47:29PM +0100, Glynn Clements wrote: Removing the TTY handling from hSetBuffering is even simpler. For simple, stupid programs, we could just provide e.g. hSetCooked, so programs which want the current behaviour can use: hSetBuffering stdin NoBuffering

Re: hSetBuffering stdin NoBuffering messes up terminal

2003-10-14 Thread Alastair Reid
On Tuesday 14 October 2003 2:11 pm, David Roundy wrote: On my terminal (aterm), calling hSetBuffering stdin NoBuffering within my program messes up the terminal settings somehow, [...] If I understand recent changes correctly, this is a deliberate decision. The idea is that if you wanted

Re: hSetBuffering stdin NoBuffering messes up terminal

2003-10-14 Thread Glynn Clements
David Roundy wrote: On my terminal (aterm), calling hSetBuffering stdin NoBuffering within my program messes up the terminal settings somehow, so that backspace no longer works when I run my program (without the NoBuffering) a second time. The 'reset' command fixes the problem, so once