Einar Karttunen [EMAIL PROTECTED] 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
Hello
It appears that the console is not reset correctly with
System.Console.SimpleLineEditor. The terminal does not
echo characters until it is reset.
The following program demonstrates it:
import System.Console.SimpleLineEditor
main = initialise getLineEdited prompt = print restore