logo       

Re: ghc-6 messing with terminal settings?: msg#00004

lang.haskell.glasgow.bugs

Subject: Re: ghc-6 messing with terminal settings?

"Simon Marlow" <simonmar@xxxxxxxxxxxxx> writes:

> I tend to think that changing the terminal settings for NonBlocking
> Handles attached to TTYs is the right thing, because it leads to fewer
> confused users.

And I tend to agree.

> GHC has always changed the
> terminal settings (well, for as long as I remember, anyway).

But the new behaviour in ghc-6 is that it actively attempts to
restore the old settings on program termination, yes? And what is
confusing is that the old settings are saved lazily part-way through
the computation, not necessarily at the beginning.

> Sure the Haskell 98 report doesn't require you to do this, and you can
> use that as a valid defense. But in the end, you still have to deal
> with those messages from confused users.

And as my program demonstrates, ghc central will also have to deal
with confused users on occasion. ;-)

Regards,
Malcolm


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise