Author(s): Montse Iglesias Urraca.
Version: 1.11#222 (2004/5/24, 13:8:7 CEST)
Version of last change: 1.9#315 (2004/2/25, 18:28:19 CET)
The
tcltk_low_level
library defines the low level interface used by the
tcltk
library. Essentially it includes all the code related directly to the handling of sockets and processes. This library should normally not be used directly by user programs, which use
tcltk
instead. On the other hand in some cases it may be useful to undertand how this library works in order to understand possible problems in programs that use the
tcltk
library.
tcltk_low_level
):- use_module(library(tcltk_low_level)).
tcltk_low_level
)
Usage: new_interp(TclInterpreter)
TclInterpreter
is a reference to a Tcl interpreter.
(tcltk_low_level:tclInterpreter/1
)
TclInterpreter
is a free variable.
(term_typing:var/1
)
Usage: new_interp(TclInterpreter, Options)
Options
.
TclInterpreter
is a reference to a Tcl interpreter.
(tcltk_low_level:tclInterpreter/1
)
Options
is currently instantiated to an atom.
(term_typing:atom/1
)
TclInterpreter
is a free variable.
(term_typing:var/1
)
Options
is currently a term which is not a free variable.
(term_typing:nonvar/1
)
Usage: new_interp_file(FileName, TclInterpreter)
FileName
. FileName
is treated as a name of a sript file
FileName
is a string (a list of character codes).
(basic_props:string/1
)
TclInterpreter
is a reference to a Tcl interpreter.
(tcltk_low_level:tclInterpreter/1
)
FileName
is currently a term which is not a free variable.
(term_typing:nonvar/1
)
TclInterpreter
is a free variable.
(term_typing:var/1
)
Usage: tcltk(Code, TclInterpreter)
Code
converted to string to the TclInterpreter
Code
is a Tcl command.
(tcltk_low_level:tclCommand/1
)
TclInterpreter
is a reference to a Tcl interpreter.
(tcltk_low_level:tclInterpreter/1
)
Code
is currently a term which is not a free variable.
(term_typing:nonvar/1
)
TclInterpreter
is currently a term which is not a free variable.
(term_typing:nonvar/1
)
Usage: tcltk_raw_code(String, TclInterpreter)
Stream
to the TclInterpreter
String
is a string (a list of character codes).
(basic_props:string/1
)
TclInterpreter
is a reference to a Tcl interpreter.
(tcltk_low_level:tclInterpreter/1
)
String
is currently a term which is not a free variable.
(term_typing:nonvar/1
)
TclInterpreter
is currently a term which is not a free variable.
(term_typing:nonvar/1
)
Usage: receive_result(Result, TclInterpreter)
Result
of the last TclCommand into the TclInterpreter
. If the TclCommand is not correct the wish process is terminated and a message appears showing the error
Result
is a string (a list of character codes).
(basic_props:string/1
)
TclInterpreter
is a reference to a Tcl interpreter.
(tcltk_low_level:tclInterpreter/1
)
Result
is a free variable.
(term_typing:var/1
)
TclInterpreter
is currently a term which is not a free variable.
(term_typing:nonvar/1
)
Usage: send_term(String, TclInterpreter)
TclInterpreter
. String
has the predicate with unified variables
String
is a string (a list of character codes).
(basic_props:string/1
)
TclInterpreter
is a reference to a Tcl interpreter.
(tcltk_low_level:tclInterpreter/1
)
String
is currently a term which is not a free variable.
(term_typing:nonvar/1
)
TclInterpreter
is currently a term which is not a free variable.
(term_typing:nonvar/1
)
Usage: receive_event(Event, TclInterpreter)
Event
from the event socket of the TclInterpreter
.
Event
is a list.
(basic_props:list/1
)
TclInterpreter
is a reference to a Tcl interpreter.
(tcltk_low_level:tclInterpreter/1
)
Event
is a free variable.
(term_typing:var/1
)
TclInterpreter
is currently a term which is not a free variable.
(term_typing:nonvar/1
)
Usage: receive_list(List, TclInterpreter)
List
from the event socket of the TclInterpreter
.The List
has all the predicates that have been inserted from Tcl/Tk with the command prolog_event. It is a list of terms.
List
is a list.
(basic_props:list/1
)
TclInterpreter
is a reference to a Tcl interpreter.
(tcltk_low_level:tclInterpreter/1
)
List
is a free variable.
(term_typing:var/1
)
TclInterpreter
is currently a term which is not a free variable.
(term_typing:nonvar/1
)
Usage: receive_confirm(String, TclInterpreter)
String
from the event socket of the TclInterpreter
when a term inserted into the event queue is managed.
String
is a string (a list of character codes).
(basic_props:string/1
)
TclInterpreter
is a reference to a Tcl interpreter.
(tcltk_low_level:tclInterpreter/1
)
String
is a free variable.
(term_typing:var/1
)
TclInterpreter
is currently a term which is not a free variable.
(term_typing:nonvar/1
)
Usage: delete(TclInterpreter)
TclInterpreter
from the system
TclInterpreter
is a reference to a Tcl interpreter.
(tcltk_low_level:tclInterpreter/1
)
TclInterpreter
is currently a term which is not a free variable.
(term_typing:nonvar/1
)
tcltk_low_level
)
Usage: core(String)
core/1
is a set of facts which contain String
s to be sent to the Tcl/Tk interpreter on startup. They implement miscelaneous Tcl/Tk procedures which are used by the Tcl/Tk interface.
String
is a string (a list of character codes).
(basic_props:string/1
)
String
is currently a term which is not a free variable.
(term_typing:nonvar/1
)
Go to the first, previous, next, last section, table of contents.