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
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
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
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
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
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
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
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