File: Tcl.txt

package info (click to toggle)
wily 0.13.41-6
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 2,560 kB
  • ctags: 3,426
  • sloc: ansic: 25,364; perl: 580; makefile: 445; sh: 415; python: 30; exp: 17
file content (79 lines) | stat: -rw-r--r-- 1,752 bytes parent folder | download | duplicates (18)
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
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.

this compiles with  wily-0.13.1[89] with tclversion 7.4.

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.

the only addition to standard tcl/tk is the ``wily'' command.  this has
several subcommands

wily init

	connects to wily.  should be called before any other wily command

wily isconnected

	checks that we can still talk to wily.  returns boolean.
	
wily list

	returns a list of window ids (integers).

wily name <id>

	returns the name of the window with given id.

wily new <filename>

	opens a new window with given filename.

wily attach <id>

	offer to collect events for window with given id.
	we collect _all_ events.

wily setname <id> <name>

	set the name of window with given id to the given new name.

wily settools <id> <tools>

	appends the given tools to the tools for window with given id.

wily read <id> <begin> <end>

	returns the text between points <begin> and <end> in window <id>.

wily replace <id> <begin> <end> <text>

	replaces the text between points <begin> and <end> in window
	id with <text>.

wily exec <id> <command>

	just as if <command> had been b2'd in window <id>.

wily goto <id> <string> <bool>

	as if string had been b3'd in windows <id>.  if <bool>
	is true then we jump to and select the result.

wily length <id>

	the length of the text in window <id>

wily wouldblock

	return boolean.  true if there is no event in queue.
	false if there is.

wily event

	returns a string describing the event.

wily bounce

	return the last event received back to wily.