1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84
|
<HTML><HEAD><TITLE>Tcl Programmers Manual</TITLE></HEAD>
<BODY><H1><A HREF="index.html">Wily</A> Tcl Programmers Manual</H1>
<P>this is a package of tools for communicating with wily using the Tcl
library. the file wily.c defines a thin veneer round wily's libmsg.
<P>this compiles with wily-0.13.1[89] with tclversion 7.4.
<P>the files wtcl.c and wtk.c compile against wily.c to give a tclsh alike
with wily support called wtcl, and a wish alike with wily support called
wtk.
<P>the only addition to standard tcl/tk is the ``wily'' command. this has
several subcommands
<DL>
<DT>wily init<DD>
connects to wily. should be called before any other wily command
<DT>wily isconnected<DD>
checks that we can still talk to wily. returns boolean.
<DT>wily list<DD>
returns a list of window ids (integers).
<DT>wily name <id><DD>
returns the name of the window with given id.
<DT>wily new <filename><DD>
opens a new window with given filename.
<DT>wily attach <id><DD>
offer to collect events for window with given id.
we collect _all_ events.
<DT>wily setname <id> <name><DD>
set the name of window with given id to the given new name.
<DT>wily settools <id> <tools><DD>
appends the given tools to the tools for window with given id.
<DT>wily read <id> <begin> <end><DD>
returns the text between points <begin> and <end> in window <id>.
<DT>wily replace <id> <begin> <end> <text><DD>
replaces the text between points <begin> and <end> in window
id with <text>.
<DT>wily exec <id> <command><DD>
just as if <command> had been b2'd in window <id>.
<DT>wily goto <id> <string> <bool><DD>
as if string had been b3'd in windows <id>. if <bool>
is true then we jump to and select the result.
<DT>wily length <id><DD>
the length of the text in window <id>
<DT>wily wouldblock<DD>
return boolean. true if there is no event in queue.
false if there is.
<DT>wily event<DD>
returns a string describing the event.
<DT>wily bounce<DD>
return the last event received back to wily.
</DL>
<HR><A HREF="mailto:sp106@york.ac.uk">"stephen" sp106@york.ac.uk</A>
|