1TclX(TCL) TclX(TCL)
2
3
4
6 TclX - Extended Tcl: Extended command set for Tcl
7
9 package require Tclx
10
12 This man page contains the documentation for all of the extensions that
13 are added to Tcl by Extended Tcl (TclX). TclX extends Tcl's capabili‐
14 ties by adding new commands to it, without changing the syntax of stan‐
15 dard Tcl. Extended Tcl is a superset of standard Tcl and is built
16 alongside the standard Tcl sources.
17
18 Extended Tcl was created by Karl Lehenbauer and Mark Diekhans and is
19 freely redistributable for any use without license or fee.
20
21 Available since 1989, Extended Tcl, also known as TclX, not only adds
22 capabilities to Tcl, but has also been the source of many of the capa‐
23 bilities of the baseline Tcl release, including arrays, files, sockets,
24 file events, and date and time handling, among others.
25
26 Extended Tcl introduces a set of new commands and a user-extensible
27 library of useful Tcl procedures, any of which can be automatically
28 loaded on the first attempt to execute it.
29
30 The command descriptions are separated into several sections:
31
32 · General Commands
33
34 · Debugging and Development Commands
35
36 · Unix Access Commands
37
38 · File Commands
39
40 · Network Programming Support
41
42 · File Scanning Commands
43
44 · Math Commands
45
46 · List Manipulation Commands
47
48 · Keyed Lists
49
50 · String and Character Manipulation Commands
51
52 · XPG/3 Message Catalog Commands
53
54 · Help Facility
55
56 · Tcl Loadable Libraries and Packages
57
59 A set of general, useful Tcl commands, includes a command to begin an
60 interactive session with Tcl, a facility for tracing execution, and a
61 looping command.
62
63 dirs This procedure lists the directories in the directory stack.
64
65 commandloop ?-async? ?-interactive on | off | tty? ?-prompt1 cmd?
66 ?-prompt2 cmd? ?-endcommand cmd?
67
68 Create an interactive command loop reading commands from stdin
69 and writing results to stdout. Command loops are maybe either
70 be blocking or event oriented. This command is useful for Tcl
71 scripts that do not normally converse interactively with a user
72 through a Tcl command interpreter, but which sometimes want to
73 enter this mode, perhaps for debugging or user configuration.
74 The command loop terminates on EOF.
75
76 The following options are available:
77
78 -async A command handler will be associ