WinHugs, interact support

Neil Mitchell ndmitchell at gmail.com
Thu Sep 8 09:15:29 EDT 2005


Hi,

This patch adds interact and getChar support to WinHugs. The
implementation in this version is superior to that in the old version
of WinHugs, including that the stop button now stops immediately (not
after one char is pressed) and the status bar changes to advise the
user that input is sought.

The appropach uses a Content semaphore to pause the calculating thread
when no input is available. Like all threading code, this is not
particularly fun to write or easy to understand.

Thanks

Neil
-------------- next part --------------
A non-text attachment was scrubbed...
Name: interact.patch
Type: application/octet-stream
Size: 5594 bytes
Desc: not available
Url : http://www.haskell.org//pipermail/cvs-hugs/attachments/20050908/69c0bf13/interact-0001.obj


More information about the Cvs-hugs mailing list