Up: Tcl/Tk Notes
The Tcl/Tk interface includes an experimental and unsupported terminal window based on Tcl/Tk. It is opened by using the (undocumented) predicate:
tk_terminal(Interp, TextWidget, InStream, OutStream, ErrStream)
.top.myterm, this predicate opens three Prolog streams for which the text widget acts as a terminal.
There is also a
library(tkconsol) that makes use of
tk_terminal/5. It provides a predicate
switches the Prolog top-level to a Tk window.