Node:The Tcl/Tk Terminal, Up:Tcl/Tk Notes



The Tcl/Tk Terminal Window

The Tcl/Tk interface includes an experimental 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), making use of tk_terminal/5, which switches the Prolog top level to a Tk window. This is done by simply loading the library module.