7.1 The Tcl/Tk Terminal Window

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)
Given a TextWidget, e.g. .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 tk_console/0 that switches the Prolog top-level to a Tk window.


Send feedback on this subject.