Predicates for Prolog to Interact with Tcl Interpreters
tcl_new(
-TclInterpreter)
- Create a Tcl interpreter and return a handle to it in the variable
Interpreter.
tcl_delete(
+TclInterpreter)
- Given a handle to a Tcl interpreter in variable TclInterpreter,
it deletes the interpreter from the system.
tcl_eval(
+TclInterp,
+Command,
-Result)
- Evaluates the Tcl command term given in Command in the
Tcl interpreter handle provided in TclInterpreter.
The result of the evaluation is returned as a string in Result.
tcl_event(
+TclInterp,
+Command,
-Events)
- Evaluates the Tcl command term given in Command in the Tcl
interpreter handle provided in TclInterpreter. The first
Prolog events arising from the evaluation is returned as a list
in Events. Blocks until there is something on the event
queue.