[project @ 2003-09-24 10:32:12 by simonmar]
authorsimonmar <unknown>
Wed, 24 Sep 2003 10:32:12 +0000 (10:32 +0000)
committersimonmar <unknown>
Wed, 24 Sep 2003 10:32:12 +0000 (10:32 +0000)
commite7dbf3af1879d01e70f8a35b8b83926f35404aa9
treee271922add527e925eeee93940dabba2bbd41158
parentbcc4d6b0ce599fe16aef6fabdf6bb0d49ad52617
[project @ 2003-09-24 10:32:12 by simonmar]
If we change the terminal settings as a result of hSetBuffering or
hSetEcho, then restore them again in hs_exit().  This is just good
citizenship on Unixy platforms.

We *don't* just automatically save the terminal settings and restore
them at the end, because that would prevent implementing stty-like
programs in Haskell.  This scheme is a compromise that hopefully DTRT
in most cases.
System/Posix/Internals.hs
include/HsBase.h