Hi all,
On the CVS version of TeXmacs, you find a new facility for
asynchronous interactive dialogues with the user,
based on continuations. For instance, you may try to
execute the following test function:
-------------------------------------------------
(define (dialogue-test)
(dialogue
(display* "Blah blah blah\n")
(display* "First square: "
(square (string->number (dialogue-ask "First number")))
"\n")
(interactive hi)
(while (== (dialogue-ask "Continue?") "yes") (noop))
(delayed (:pause 2000))
(display* "Second square: "
(square (string->number (dialogue-ask "Second number")))
"\n")
(display* "Blah blah blah\n")))
-------------------------------------------------
Due to lack of time, the facility is not yet 100% satisfactory,
so there might be a volunteer for helping on the following issues:
1) Nested dialogues.
2) Better error reporting using lazy-catch.
If these points are solved (mainly 2), then I could encapsulate
any menu, keyboard and other interactive actions into dialogues.
Best wishes, Joris
_______________________________________________
Texmacs-dev mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/texmacs-dev