Author(s): Isabel Martín García.
Version: 1.11#222 (2004/5/24, 13:8:7 CEST)
Version of last change: 1.9#153 (2003/12/4, 17:38:53 CET)
This module exports some predicates to interact with Tcl-tk, particularly with the bltwish program. Bltwish is a windowing shell consisting of the Tcl command languaje, the Tk toolkit plus the additional commands that comes with the BLT library and a main program that reads commands. It creates a main window and then processes Tcl commands.
bltclass
)bltclass
)
new_interp(Interp)
Creates a bltwish interprter and returns a socket. The socket allows the comunication between Prolog and Tcl-tk. Thus, bltwish receives the commands through the socket.
Usage:
Interp
is a free variable.
(term_typing:var/1
)
bltclass:bltwish_interp(Interp)
(bltclass:bltwish_interp/1
)
tcltk_raw_code(Command_Line, Interp)
Sends a command line to the interpreter. Tcl-tk parses and executes it.
Usage:
Command_Line
is a string (a list of character codes).
(basic_props:string/1
)
bltclass:bltwish_interp(Interp)
(bltclass:bltwish_interp/1
)
bltwish_interp(Interp)
This type defines a bltwish interpreter. In fact, the bltwish interpreter receives the commands through the socket created.
bltwish_interp(Interp) :- stream(Interp).
interp_file(File, Interp)
Sends the script file (File) to the interpreter through the socket. A script file is a file that contains commands that Tcl-tk can execute.
Usage:
File
is a source name.
(streams_basic:sourcename/1
)
bltclass:bltwish_interp(Interp)
(bltclass:bltwish_interp/1
)
Go to the first, previous, next, last section, table of contents.