Terminal does not reset correctly with
System.Console.SimpleLineEditor
Malcolm Wallace
Malcolm.Wallace at cs.york.ac.uk
Sun Nov 7 07:00:27 EST 2004
Einar Karttunen <ekarttun at cs.helsinki.fi> writes:
> It appears that the console is not reset correctly with
> System.Console.SimpleLineEditor. The terminal does not
> echo characters until it is reset.
The issue here is the order in which the library makes calls to
hSetBuffering and system("stty icanon echo") to reset the terminal.
For ghc-6, they are in the wrong order, although for nhc98 and ghc-5,
the order doesn't matter. Hence, a simple fix is to swap these calls
over, as I have just done in CVS.
Regards,
Malcolm
More information about the Glasgow-haskell-users
mailing list