Skip to content

Instantly share code, notes, and snippets.

Created November 21, 2011 21:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/1384065 to your computer and use it in GitHub Desktop.
Save anonymous/1384065 to your computer and use it in GitHub Desktop.
Sample tcl_ref output (as of 802d021b37a07f940320759460688f4b345164fe)
tclsh http://www.tcl.tk/man/tcl8.5/UserCmd/tclsh.htm Tclsh is a shell-like application that reads Tcl commands from its standard input or from a file and evaluates them. tclsh ?-encoding name? ?fileName arg arg ...?
wish http://www.tcl.tk/man/tcl8.5/UserCmd/wish.htm Wish is a simple program consisting of the Tcl command language, the Tk toolkit, and a main program that reads commands from standard input or from a file. wish ?-encoding name? ?fileName arg arg ...?
after http://www.tcl.tk/man/tcl8.5/TclCmd/after.htm This command is used to delay execution of the program or to execute a command in background sometime in the future. after ms<br />after ms ?script script script ...?<br />after cancel id<br />after cancel script script script ...<br />after idle ?script script script ...?<br />after info ?id?
append http://www.tcl.tk/man/tcl8.5/TclCmd/append.htm Append all of the value arguments to the current value of variable varName. append varName ?value value value ...?
apply http://www.tcl.tk/man/tcl8.5/TclCmd/apply.htm The command apply applies the function func to the arguments arg1 arg2 ... and returns the result. apply func ?arg1 arg2 ...?
array http://www.tcl.tk/man/tcl8.5/TclCmd/array.htm This command performs one of several operations on the variable given by arrayName. array option arrayName ?arg arg ...?
bgerror http://www.tcl.tk/man/tcl8.5/TclCmd/bgerror.htm Release 8.5 of Tcl supports the interp bgerror command, which allows applications to register in an interpreter the command that will handle background errors in that interpreter. bgerror message
binary http://www.tcl.tk/man/tcl8.5/TclCmd/binary.htm This command provides facilities for manipulating binary data. binary format formatString ?arg arg ...?<br />binary scan string formatString ?varName varName ...?
break http://www.tcl.tk/man/tcl8.5/TclCmd/break.htm This command is typically invoked inside the body of a looping command such as for or foreach or while. break
catch http://www.tcl.tk/man/tcl8.5/TclCmd/catch.htm The catch command may be used to prevent errors from aborting command interpretation. catch script ?resultVarName? ?optionsVarName?
cd http://www.tcl.tk/man/tcl8.5/TclCmd/cd.htm Change the current working directory to dirName, or to the home directory (as specified in the HOME environment variable) if dirName is not given. cd ?dirName?
chan http://www.tcl.tk/man/tcl8.5/TclCmd/chan.htm This command provides several operations for reading from, writing to and otherwise manipulating open channels (such as have been created with the open and socket commands, or the default named channels stdin, stdout or stderr which correspond to the process's standard input, output and error streams respectively). chan option ?arg arg ...?
clock http://www.tcl.tk/man/tcl8.5/TclCmd/clock.htm The clock command performs several operations that obtain and manipulate values that represent times. package require Tcl 8.5<br />clock add timeVal ?count unit...? ?-option value?<br />clock clicks ?-option?<br />clock format timeVal ?-option value...?<br />clock microseconds <br />clock milliseconds <br />clock scan inputString ?-option value...?<br />clock seconds
close http://www.tcl.tk/man/tcl8.5/TclCmd/close.htm Closes the channel given by channelId. close channelId
concat http://www.tcl.tk/man/tcl8.5/TclCmd/concat.htm This command joins each of its arguments together with spaces after trimming leading and trailing white-space from each of them. concat ?arg arg ...?
continue http://www.tcl.tk/man/tcl8.5/TclCmd/continue.htm This command is typically invoked inside the body of a looping command such as for or foreach or while. continue
dde http://www.tcl.tk/man/tcl8.5/TclCmd/dde.htm This command allows an application to send Dynamic Data Exchange (DDE) command when running under Microsoft Windows. package require dde 1.3<br />dde servername ?-force? ?-handler proc? ?--? ?topic?<br />dde execute ?-async? service topic data<br />dde poke service topic item data<br />dde request ?-binary? service topic item<br />dde services service topic<br />dde eval ?-async? topic cmd ?arg arg ...?
dict http://www.tcl.tk/man/tcl8.5/TclCmd/dict.htm Performs one of several operations on dictionary values or variables containing dictionary values (see the DICTIONARY VALUES section below for a description), depending on option. dict option arg ?arg ...?
encoding http://www.tcl.tk/man/tcl8.5/TclCmd/encoding.htm Performs one of several encoding related operations, depending on option. encoding option ?arg arg ...?
eof http://www.tcl.tk/man/tcl8.5/TclCmd/eof.htm Returns 1 if an end of file condition occurred during the most recent input operation on channelId (such as gets), 0 otherwise. eof channelId
error http://www.tcl.tk/man/tcl8.5/TclCmd/error.htm Returns a TCL_ERROR code, which causes command interpretation to be unwound. error message ?info? ?code?
eval http://www.tcl.tk/man/tcl8.5/TclCmd/eval.htm Eval takes one or more arguments, which together comprise a Tcl script containing one or more commands. eval arg ?arg ...?
exec http://www.tcl.tk/man/tcl8.5/TclCmd/exec.htm This command treats its arguments as the specification of one or more subprocesses to execute. exec ?switches? arg ?arg ...?
exit http://www.tcl.tk/man/tcl8.5/TclCmd/exit.htm Terminate the process, returning returnCode to the system as the exit status. exit ?returnCode?
expr http://www.tcl.tk/man/tcl8.5/TclCmd/expr.htm Concatenates args (adding separator spaces between them), evaluates the result as a Tcl expression, and returns the value. expr arg ?arg arg ...?
fblocked http://www.tcl.tk/man/tcl8.5/TclCmd/fblocked.htm The fblocked command returns 1 if the most recent input operation on channelId returned less information than requested because all available input was exhausted. fblocked channelId
fconfigure http://www.tcl.tk/man/tcl8.5/TclCmd/fconfigure.htm The fconfigure command sets and retrieves options for channels. fconfigure channelId<br />fconfigure channelId name<br />fconfigure channelId name value ?name value ...?
fcopy http://www.tcl.tk/man/tcl8.5/TclCmd/fcopy.htm The fcopy command copies data from one I/O channel, inchan to another I/O channel, outchan. fcopy inchan outchan ?-size size? ?-command callback?
file http://www.tcl.tk/man/tcl8.5/TclCmd/file.htm This command provides several operations on a file's name or attributes. file option name ?arg arg ...?
fileevent http://www.tcl.tk/man/tcl8.5/TclCmd/fileevent.htm This command is used to create file event handlers. fileevent channelId readable ?script?<br />fileevent channelId writable ?script?
flush http://www.tcl.tk/man/tcl8.5/TclCmd/flush.htm Flushes any output that has been buffered for channelId. flush channelId
for http://www.tcl.tk/man/tcl8.5/TclCmd/for.htm For is a looping command, similar in structure to the C for statement. for start test next body
foreach http://www.tcl.tk/man/tcl8.5/TclCmd/foreach.htm The foreach command implements a loop where the loop variable(s) take on values from one or more lists. foreach varname list body<br />foreach varlist1 list1 ?varlist2 list2 ...? body
format http://www.tcl.tk/man/tcl8.5/TclCmd/format.htm format formatString ?arg arg ...?
gets http://www.tcl.tk/man/tcl8.5/TclCmd/gets.htm This command reads the next line from channelId, returns everything in the line up to (but not including) the end-of-line character(s), and discards the end-of-line character(s). gets channelId ?varName?
glob http://www.tcl.tk/man/tcl8.5/TclCmd/glob.htm This command performs file name &#8220;globbing&#8221; in a fashion similar to the csh shell. glob ?switches? pattern ?pattern ...?
global http://www.tcl.tk/man/tcl8.5/TclCmd/global.htm This command has no effect unless executed in the context of a proc body. global varname ?varname ...?
history http://www.tcl.tk/man/tcl8.5/TclCmd/history.htm The history command performs one of several operations related to recently-executed commands recorded in a history list. history ?option? ?arg arg ...?
http http://www.tcl.tk/man/tcl8.5/TclCmd/http.htm The http package provides the client side of the HTTP/1.1 protocol, as defined in RFC 2616. package require http ?2.7?<br />::http::config ?options?<br />::http::geturl url ?options?<br />::http::formatQuery key value ?key value ...?<br />::http::reset token ?why?<br />::http::wait token<br />::http::status token<br />::http::size token<br />::http::code token<br />::http::ncode token<br />::http::meta token<br />::http::data token<br />::http::error token<br />::http::cleanup token<br />::http::register proto port command<br />::http::unregister proto
if http://www.tcl.tk/man/tcl8.5/TclCmd/if.htm The if command evaluates expr1 as an expression (in the same way that expr evaluates its argument). if expr1 ?then? body1 elseif expr2 ?then? body2 elseif ... ?else? ?bodyN?
incr http://www.tcl.tk/man/tcl8.5/TclCmd/incr.htm Increments the value stored in the variable whose name is varName. incr varName ?increment?
info http://www.tcl.tk/man/tcl8.5/TclCmd/info.htm This command provides information about various internals of the Tcl interpreter. info option ?arg arg ...?
interp http://www.tcl.tk/man/tcl8.5/TclCmd/interp.htm This command makes it possible to create one or more new Tcl interpreters that co-exist with the creating interpreter in the same application. interp subcommand ?arg arg ...?
join http://www.tcl.tk/man/tcl8.5/TclCmd/join.htm The list argument must be a valid Tcl list. join list ?joinString?
lappend http://www.tcl.tk/man/tcl8.5/TclCmd/lappend.htm This command treats the variable given by varName as a list and appends each of the value arguments to that list as a separate element, with spaces between elements. lappend varName ?value value value ...?
lassign http://www.tcl.tk/man/tcl8.5/TclCmd/lassign.htm This command treats the value list as a list and assigns successive elements from that list to the variables given by the varName arguments in order. lassign list varName ?varName ...?
lindex http://www.tcl.tk/man/tcl8.5/TclCmd/lindex.htm The lindex command accepts a parameter, list, which it treats as a Tcl list. lindex list ?index...?
linsert http://www.tcl.tk/man/tcl8.5/TclCmd/linsert.htm This command produces a new list from list by inserting all of the element arguments just before the index'th element of list. linsert list index element ?element element ...?
list http://www.tcl.tk/man/tcl8.5/TclCmd/list.htm This command returns a list comprised of all the args, or an empty string if no args are specified. list ?arg arg ...?
llength http://www.tcl.tk/man/tcl8.5/TclCmd/llength.htm Treats list as a list and returns a decimal string giving the number of elements in it. llength list
load http://www.tcl.tk/man/tcl8.5/TclCmd/load.htm This command loads binary code from a file into the application's address space and calls an initialization procedure in the package to incorporate it into an interpreter. load fileName<br />load fileName packageName<br />load fileName packageName interp
lrange http://www.tcl.tk/man/tcl8.5/TclCmd/lrange.htm List must be a valid Tcl list. lrange list first last
lrepeat http://www.tcl.tk/man/tcl8.5/TclCmd/lrepeat.htm The lrepeat command creates a list of size number * number of elements by repeating number times the sequence of elements element1 element2 .... lrepeat number element1 ?element2 element3 ...?
lreplace http://www.tcl.tk/man/tcl8.5/TclCmd/lreplace.htm lreplace returns a new list formed by replacing one or more elements of list with the element arguments. lreplace list first last ?element element ...?
lreverse http://www.tcl.tk/man/tcl8.5/TclCmd/lreverse.htm The lreverse command returns a list that has the same elements as its input list, list, except with the elements in the reverse order. lreverse list
lsearch http://www.tcl.tk/man/tcl8.5/TclCmd/lsearch.htm This command searches the elements of list to see if one of them matches pattern. lsearch ?options? list pattern
lset http://www.tcl.tk/man/tcl8.5/TclCmd/lset.htm The lset command accepts a parameter, varName, which it interprets as the name of a variable containing a Tcl list. lset varName ?index...? newValue
lsort http://www.tcl.tk/man/tcl8.5/TclCmd/lsort.htm This command sorts the elements of list, returning a new list in sorted order. lsort ?options? list
mathfunc http://www.tcl.tk/man/tcl8.5/TclCmd/mathfunc.htm The expr command handles mathematical functions of the form sin($x) or atan2($y,$x) by converting them to calls of the form [tcl::mathfunc::sin [expr {$x}]] or [tcl::mathfunc::atan2 [expr {$y}] [expr {$x}]]. package require Tcl 8.5<br />::tcl::mathfunc::abs arg<br />::tcl::mathfunc::acos arg<br />::tcl::mathfunc::asin arg<br />::tcl::mathfunc::atan arg<br />::tcl::mathfunc::atan2 y x<br />::tcl::mathfunc::bool arg<br />::tcl::mathfunc::ceil arg<br />::tcl::mathfunc::cos arg<br />::tcl::mathfunc::cosh arg<br />::tcl::mathfunc::double arg<br />::tcl::mathfunc::entier arg<br />::tcl::mathfunc::exp arg<br />::tcl::mathfunc::floor arg<br />::tcl::mathfunc::fmod x y<br />::tcl::mathfunc::hypot x y<br />::tcl::mathfunc::int arg<br />::tcl::mathfunc::isqrt arg<br />::tcl::mathfunc::log arg<br />::tcl::mathfunc::log10 arg<br />::tcl::mathfunc::max arg ?arg ...?<br />::tcl::mathfunc::min arg ?arg ...?<br />::tcl::mathfunc::pow x y<br />::tcl::mathfunc::rand<br />::tcl::mathfunc::round arg<br />::tcl::mathfunc::sin arg<br />::tcl::mathfunc::sinh arg<br />::tcl::mathfunc::sqrt arg<br />::tcl::mathfunc::srand arg<br />::tcl::mathfunc::tan arg<br />::tcl::mathfunc::tanh arg<br />::tcl::mathfunc::wide arg
mathop http://www.tcl.tk/man/tcl8.5/TclCmd/mathop.htm The commands in the ::tcl::mathop namespace implement the same set of operations as supported by the expr command. package require Tcl 8.5<br />::tcl::mathop::! number<br />::tcl::mathop::~ number<br />::tcl::mathop::+ ?number ...?<br />::tcl::mathop::- number ?number ...?<br />::tcl::mathop::* ?number ...?<br />::tcl::mathop::/ number ?number ...?<br />::tcl::mathop::% number number<br />::tcl::mathop::** ?number ...?<br />::tcl::mathop::&amp; ?number ...?<br />::tcl::mathop::| ?number ...?<br />::tcl::mathop::^ ?number ...?<br />::tcl::mathop::&lt;&lt; number number<br />::tcl::mathop::&gt;&gt; number number<br />::tcl::mathop::== ?arg ...?<br />::tcl::mathop::!= arg arg<br />::tcl::mathop::&lt; ?arg ...?<br />::tcl::mathop::&lt;= ?arg ...?<br />::tcl::mathop::&gt;= ?arg ...?<br />::tcl::mathop::&gt; ?arg ...?<br />::tcl::mathop::eq ?arg ...?<br />::tcl::mathop::ne arg arg<br />::tcl::mathop::in arg list<br />::tcl::mathop::ni arg list
memory http://www.tcl.tk/man/tcl8.5/TclCmd/memory.htm The memory command gives the Tcl developer control of Tcl's memory debugging capabilities. memory option ?arg arg ...?
msgcat http://www.tcl.tk/man/tcl8.5/TclCmd/msgcat.htm The msgcat package provides a set of functions that can be used to manage multi-lingual user interfaces. package require Tcl 8.5<br />package require msgcat 1.4.2<br />::msgcat::mc src-string ?arg arg ...?<br />::msgcat::mcmax ?src-string src-string ...?<br />::msgcat::mclocale ?newLocale?<br />::msgcat::mcpreferences<br />::msgcat::mcload dirname<br />::msgcat::mcset locale src-string ?translate-string?<br />::msgcat::mcmset locale src-trans-list<br />::msgcat::mcunknown locale src-string
namespace http://www.tcl.tk/man/tcl8.5/TclCmd/namespace.htm The namespace command lets you create, access, and destroy separate contexts for commands and variables. namespace ?subcommand? ?arg ...?
open http://www.tcl.tk/man/tcl8.5/TclCmd/open.htm This command opens a file, serial port, or command pipeline and returns a channel identifier that may be used in future invocations of commands like read, puts, and close. open fileName<br />open fileName access<br />open fileName access permissions
package http://www.tcl.tk/man/tcl8.5/TclCmd/package.htm This command keeps a simple database of the packages available for use by the current interpreter and how to load them into the interpreter. package forget ?package package ...?<br />package ifneeded package version ?script?<br />package names<br />package present package ?requirement...?<br />package present -exact package version<br />package provide package ?version?<br />package require package ?requirement...?<br />package require -exact package version<br />package unknown ?command?<br />package vcompare version1 version2<br />package versions package<br />package vsatisfies version requirement...<br />package prefer ?latest|stable?
pkg::create http://www.tcl.tk/man/tcl8.5/TclCmd/packagens.htm ::pkg::create is a utility procedure that is part of the standard Tcl library. ::pkg::create -name packageName -version packageVersion ?-load filespec? ... ?-source filespec? ...
pid http://www.tcl.tk/man/tcl8.5/TclCmd/pid.htm If the fileId argument is given then it should normally refer to a process pipeline created with the open command. pid ?fileId?
pkg_mkIndex http://www.tcl.tk/man/tcl8.5/TclCmd/pkgMkIndex.htm Pkg_mkIndex is a utility procedure that is part of the standard Tcl library. pkg_mkIndex ?-direct? ?-lazy? ?-load pkgPat? ?-verbose? dir ?pattern pattern ...?
platform http://www.tcl.tk/man/tcl8.5/TclCmd/platform.htm The platform package provides several utility commands useful for the identification of the architecture of a machine running Tcl. package require platform ?1.0.4?<br />platform::generic<br />platform::identify<br />platform::patterns identifier
platform::shell http://www.tcl.tk/man/tcl8.5/TclCmd/platform_shell.htm The platform::shell package provides several utility commands useful for the identification of the architecture of a specific Tcl shell. package require platform::shell ?1.1.4?<br />platform::shell::generic shell<br />platform::shell::identify shell<br />platform::shell::platform shell
proc http://www.tcl.tk/man/tcl8.5/TclCmd/proc.htm The proc command creates a new Tcl procedure named name, replacing any existing command or procedure there may have been by that name. proc name args body
puts http://www.tcl.tk/man/tcl8.5/TclCmd/puts.htm Writes the characters given by string to the channel given by channelId. puts ?-nonewline? ?channelId? string
pwd http://www.tcl.tk/man/tcl8.5/TclCmd/pwd.htm Returns the absolute path name of the current working directory. pwd
read http://www.tcl.tk/man/tcl8.5/TclCmd/read.htm In the first form, the read command reads all of the data from channelId up to the end of the file. read ?-nonewline? channelId<br />read channelId numChars
refchan http://www.tcl.tk/man/tcl8.5/TclCmd/refchan.htm The Tcl-level handler for a reflected channel has to be a command with subcommands (termed an ensemble, as it is a command such as that created by namespace ensemble create, though the implementation of handlers for reflected channel is not tied to namespace ensembles in any way). cmdPrefix option ?arg arg ...?
regexp http://www.tcl.tk/man/tcl8.5/TclCmd/regexp.htm Determines whether the regular expression exp matches part or all of string and returns 1 if it does, 0 if it does not, unless -inline is specified (see below). regexp ?switches? exp string ?matchVar? ?subMatchVar subMatchVar ...?
registry http://www.tcl.tk/man/tcl8.5/TclCmd/registry.htm The registry package provides a general set of operations for manipulating the Windows registry. package require registry 1.1<br />registry option keyName ?arg arg ...?
regsub http://www.tcl.tk/man/tcl8.5/TclCmd/regsub.htm This command matches the regular expression exp against string, and either copies string to the variable whose name is given by varName or returns string if varName is not present. regsub ?switches? exp string subSpec ?varName?
rename http://www.tcl.tk/man/tcl8.5/TclCmd/rename.htm Rename the command that used to be called oldName so that it is now called newName. rename oldName newName
return http://www.tcl.tk/man/tcl8.5/TclCmd/return.htm In its simplest usage, the return command is used without options in the body of a procedure to immediately return control to the caller of the procedure. return ?result?<br />return ?-code code? ?result?<br />return ?option value ...? ?result?
Safe&nbsp;Base http://www.tcl.tk/man/tcl8.5/TclCmd/safe.htm Safe Tcl is a mechanism for executing untrusted Tcl scripts safely and for providing mediated access by such scripts to potentially dangerous functionality. ::safe::interpCreate ?slave? ?options...?<br />::safe::interpInit slave ?options...?<br />::safe::interpConfigure slave ?options...?<br />::safe::interpDelete slave<br />::safe::interpAddToAccessPath slave directory<br />::safe::interpFindInAccessPath slave directory<br />::safe::setLogCmd ?cmd arg...?<br />OPTIONS<br />?-accessPath pathList?<br />?-statics boolean? ?-noStatics?<br />?-nested boolean? ?-nestedLoadOk?<br />?-deleteHook script?
scan http://www.tcl.tk/man/tcl8.5/TclCmd/scan.htm scan string format ?varName varName ...?
seek http://www.tcl.tk/man/tcl8.5/TclCmd/seek.htm Changes the current access position for channelId. seek channelId offset ?origin?
set http://www.tcl.tk/man/tcl8.5/TclCmd/set.htm Returns the value of variable varName. set varName ?value?
socket http://www.tcl.tk/man/tcl8.5/TclCmd/socket.htm This command opens a network socket and returns a channel identifier that may be used in future invocations of commands like read, puts and flush. socket ?options? host port<br />socket -server command ?options? port
source http://www.tcl.tk/man/tcl8.5/TclCmd/source.htm This command takes the contents of the specified file or resource and passes it to the Tcl interpreter as a text script. source fileName<br />source -encoding encodingName fileName
split http://www.tcl.tk/man/tcl8.5/TclCmd/split.htm Returns a list created by splitting string at each character that is in the splitChars argument. split string ?splitChars?
string http://www.tcl.tk/man/tcl8.5/TclCmd/string.htm Performs one of several string operations, depending on option. string option arg ?arg ...?
subst http://www.tcl.tk/man/tcl8.5/TclCmd/subst.htm This command performs variable substitutions, command substitutions, and backslash substitutions on its string argument and returns the fully-substituted result. subst ?-nobackslashes? ?-nocommands? ?-novariables? string
switch http://www.tcl.tk/man/tcl8.5/TclCmd/switch.htm The switch command matches its string argument against each of the pattern arguments in order. switch ?options? string pattern body ?pattern body ...?<br />switch ?options? string {pattern body ?pattern body ...?}
tcltest http://www.tcl.tk/man/tcl8.5/TclCmd/tcltest.htm The tcltest package provides several utility commands useful in the construction of test suites for code instrumented to be run by evaluation of Tcl commands. package require tcltest ?2.3?<br />tcltest::test name description ?option value ...?<br />tcltest::test name description ?constraints? body result<br />tcltest::loadTestedCommands<br />tcltest::makeDirectory name ?directory?<br />tcltest::removeDirectory name ?directory?<br />tcltest::makeFile contents name ?directory?<br />tcltest::removeFile name ?directory?<br />tcltest::viewFile name ?directory?<br />tcltest::cleanupTests ?runningMultipleTests?<br />tcltest::runAllTests<br />tcltest::configure<br />tcltest::configure option<br />tcltest::configure option value ?option value ...?<br />tcltest::customMatch mode command<br />tcltest::testConstraint constraint ?value?<br />tcltest::outputChannel ?channelID?<br />tcltest::errorChannel ?channelID?<br />tcltest::interpreter ?interp?<br />tcltest::debug ?level?<br />tcltest::errorFile ?filename?<br />tcltest::limitConstraints ?boolean?<br />tcltest::loadFile ?filename?<br />tcltest::loadScript ?script?<br />tcltest::match ?patternList?<br />tcltest::matchDirectories ?patternList?<br />tcltest::matchFiles ?patternList?<br />tcltest::outputFile ?filename?<br />tcltest::preserveCore ?level?<br />tcltest::singleProcess ?boolean?<br />tcltest::skip ?patternList?<br />tcltest::skipDirectories ?patternList?<br />tcltest::skipFiles ?patternList?<br />tcltest::temporaryDirectory ?directory?<br />tcltest::testsDirectory ?directory?<br />tcltest::verbose ?level?<br />tcltest::test name description optionList<br />tcltest::bytestring string<br />tcltest::normalizeMsg msg<br />tcltest::normalizePath pathVar<br />tcltest::workingDirectory ?dir?
tclvars http://www.tcl.tk/man/tcl8.5/TclCmd/tclvars.htm The following global variables are created and managed automatically by the Tcl library.
tell http://www.tcl.tk/man/tcl8.5/TclCmd/tell.htm Returns an integer string giving the current access position in channelId. tell channelId
time http://www.tcl.tk/man/tcl8.5/TclCmd/time.htm This command will call the Tcl interpreter count times to evaluate script (or once if count is not specified). time script ?count?
tm http://www.tcl.tk/man/tcl8.5/TclCmd/tm.htm This document describes the facilities for locating and loading Tcl Modules (see MODULE DEFINITION for the definition of a Tcl Module). ::tcl::tm::path add ?path...?<br />::tcl::tm::path remove ?path...?<br />::tcl::tm::path list<br />::tcl::tm::roots ?path...?
trace http://www.tcl.tk/man/tcl8.5/TclCmd/trace.htm This command causes Tcl commands to be executed whenever certain operations are invoked. trace option ?arg arg ...?
unknown http://www.tcl.tk/man/tcl8.5/TclCmd/unknown.htm This command is invoked by the Tcl interpreter whenever a script tries to invoke a command that does not exist. unknown cmdName ?arg arg ...?
unload http://www.tcl.tk/man/tcl8.5/TclCmd/unload.htm This command tries to unload shared libraries previously loaded with load from the application's address space. unload ?switches? fileName<br />unload ?switches? fileName packageName<br />unload ?switches? fileName packageName interp
unset http://www.tcl.tk/man/tcl8.5/TclCmd/unset.htm This command removes one or more variables. unset ?-nocomplain? ?--? ?name name name ...?
update http://www.tcl.tk/man/tcl8.5/TclCmd/update.htm This command is used to bring the application &#8220;up to date&#8221; by entering the event loop repeatedly until all pending events (including idle callbacks) have been processed. update ?idletasks?
uplevel http://www.tcl.tk/man/tcl8.5/TclCmd/uplevel.htm All of the arg arguments are concatenated as if they had been passed to concat; the result is then evaluated in the variable context indicated by level. uplevel ?level? arg ?arg ...?
upvar http://www.tcl.tk/man/tcl8.5/TclCmd/upvar.htm This command arranges for one or more local variables in the current procedure to refer to variables in an enclosing procedure call or to global variables. upvar ?level? otherVar myVar ?otherVar myVar ...?
variable http://www.tcl.tk/man/tcl8.5/TclCmd/variable.htm This command is normally used within a namespace eval command to create one or more variables within a namespace. variable ?name value...? name ?value?
vwait http://www.tcl.tk/man/tcl8.5/TclCmd/vwait.htm This command enters the Tcl event loop to process events, blocking the application if no events are ready. vwait varName
while http://www.tcl.tk/man/tcl8.5/TclCmd/while.htm The while command evaluates test as an expression (in the same way that expr evaluates its argument). while test body
bell http://www.tcl.tk/man/tcl8.5/TkCmd/bell.htm This command rings the bell on the display for window and returns an empty string. bell ?-displayof window? ?-nice?
bind http://www.tcl.tk/man/tcl8.5/TkCmd/bind.htm bind tag ?sequence? ?+??script?
bindtags http://www.tcl.tk/man/tcl8.5/TkCmd/bindtags.htm When a binding is created with the bind command, it is associated either with a particular window such as .a.b.c, a class name such as Button, the keyword all, or any other string. bindtags window ?tagList?
bitmap http://www.tcl.tk/man/tcl8.5/TkCmd/bitmap.htm A bitmap is an image whose pixels can display either of two colors or be transparent. image create bitmap ?name? ?options?
button http://www.tcl.tk/man/tcl8.5/TkCmd/button.htm The button command creates a new window (given by the pathName argument) and makes it into a button widget. button pathName ?options?
canvas http://www.tcl.tk/man/tcl8.5/TkCmd/canvas.htm canvas pathName ?options?
checkbutton http://www.tcl.tk/man/tcl8.5/TkCmd/checkbutton.htm The checkbutton command creates a new window (given by the pathName argument) and makes it into a checkbutton widget. checkbutton pathName ?options?
tk_chooseColor http://www.tcl.tk/man/tcl8.5/TkCmd/chooseColor.htm The procedure tk_chooseColor pops up a dialog box for the user to select a color. tk_chooseColor ?option value ...?
tk_chooseDirectory http://www.tcl.tk/man/tcl8.5/TkCmd/chooseDirectory.htm The procedure tk_chooseDirectory pops up a dialog box for the user to select a directory. tk_chooseDirectory ?option value ...?
clipboard http://www.tcl.tk/man/tcl8.5/TkCmd/clipboard.htm This command provides a Tcl interface to the Tk clipboard, which stores data for later retrieval using the selection mechanism (via the -selection CLIPBOARD option). clipboard option ?arg arg ...?
colors http://www.tcl.tk/man/tcl8.5/TkCmd/colors.htm Tk recognizes many symbolic color names (e.g., red) when specifying colors.
console http://www.tcl.tk/man/tcl8.5/TkCmd/console.htm The console window is a replacement for a real console to allow input and output on the standard I/O channels on platforms that do not have a real console. console subcommand ?arg ...?
cursors http://www.tcl.tk/man/tcl8.5/TkCmd/cursors.htm The -cursor widget option allows a Tk programmer to change the mouse cursor for a particular widget.
destroy http://www.tcl.tk/man/tcl8.5/TkCmd/destroy.htm This command deletes the windows given by the window arguments, plus all of their descendants. destroy ?window window ...?
tk_dialog http://www.tcl.tk/man/tcl8.5/TkCmd/dialog.htm This procedure is part of the Tk script library. tk_dialog window title text bitmap default string string ...
entry http://www.tcl.tk/man/tcl8.5/TkCmd/entry.htm The entry command creates a new window (given by the pathName argument) and makes it into an entry widget. entry pathName ?options?
event http://www.tcl.tk/man/tcl8.5/TkCmd/event.htm The event command provides several facilities for dealing with window system events, such as defining virtual events and synthesizing events. event option ?arg arg ...?
focus http://www.tcl.tk/man/tcl8.5/TkCmd/focus.htm The focus command is used to manage the Tk input focus. focus<br />focus window<br />focus option ?arg arg ...?
tk_focusNext http://www.tcl.tk/man/tcl8.5/TkCmd/focusNext.htm tk_focusNext is a utility procedure used for keyboard traversal. tk_focusNext window<br />tk_focusPrev window<br />tk_focusFollowsMouse
font http://www.tcl.tk/man/tcl8.5/TkCmd/font.htm The font command provides several facilities for dealing with fonts, such as defining named fonts and inspecting the actual attributes of a font. font option ?arg arg ...?
frame http://www.tcl.tk/man/tcl8.5/TkCmd/frame.htm The frame command creates a new window (given by the pathName argument) and makes it into a frame widget. frame pathName ?options?
tk_getOpenFile http://www.tcl.tk/man/tcl8.5/TkCmd/getOpenFile.htm The procedures tk_getOpenFile and tk_getSaveFile pop up a dialog box for the user to select a file to open or save. tk_getOpenFile ?option value ...?<br />tk_getSaveFile ?option value ...?
grab http://www.tcl.tk/man/tcl8.5/TkCmd/grab.htm This command implements simple pointer and keyboard grabs for Tk. grab ?-global? window<br />grab option ?arg arg ...?
grid http://www.tcl.tk/man/tcl8.5/TkCmd/grid.htm The grid command is used to communicate with the grid geometry manager that arranges widgets in rows and columns inside of another window, called the geometry master (or master window). grid option arg ?arg ...?
image http://www.tcl.tk/man/tcl8.5/TkCmd/image.htm The image command is used to create, delete, and query images. image option ?arg arg ...?
keysyms http://www.tcl.tk/man/tcl8.5/TkCmd/keysyms.htm Tk recognizes many keysyms when specifying key bindings (e.g.
label http://www.tcl.tk/man/tcl8.5/TkCmd/label.htm The label command creates a new window (given by the pathName argument) and makes it into a label widget. label pathName ?options?
labelframe http://www.tcl.tk/man/tcl8.5/TkCmd/labelframe.htm The labelframe command creates a new window (given by the pathName argument) and makes it into a labelframe widget. labelframe pathName ?options?
listbox http://www.tcl.tk/man/tcl8.5/TkCmd/listbox.htm The listbox command creates a new window (given by the pathName argument) and makes it into a listbox widget. listbox pathName ?options?
loadTk http://www.tcl.tk/man/tcl8.5/TkCmd/loadTk.htm Safe Tk is based on Safe Tcl, which provides a mechanism that allows restricted and mediated access to auto-loading and packages for safe interpreters. ::safe::loadTk slave ?-use windowId? ?-display displayName?
lower http://www.tcl.tk/man/tcl8.5/TkCmd/lower.htm If the belowThis argument is omitted then the command lowers window so that it is below all of its siblings in the stacking order (it will be obscured by any siblings that overlap it and will not obscure any siblings). lower window ?belowThis?
menu http://www.tcl.tk/man/tcl8.5/TkCmd/menu.htm menu pathName ?options?<br />tk_menuSetFocus pathName
menubutton http://www.tcl.tk/man/tcl8.5/TkCmd/menubutton.htm menubutton pathName ?options?
message http://www.tcl.tk/man/tcl8.5/TkCmd/message.htm The message command creates a new window (given by the pathName argument) and makes it into a message widget. message pathName ?options?
tk_messageBox http://www.tcl.tk/man/tcl8.5/TkCmd/messageBox.htm This procedure creates and displays a message window with an application-specified message, an icon and a set of buttons. tk_messageBox ?option value ...?
option http://www.tcl.tk/man/tcl8.5/TkCmd/option.htm The option command allows you to add entries to the Tk option database or to retrieve options from the database. option add pattern value ?priority?<br />option clear<br />option get window name class<br />option readfile fileName ?priority?
tk_optionMenu http://www.tcl.tk/man/tcl8.5/TkCmd/optionMenu.htm This procedure creates an option menubutton whose name is pathName, plus an associated menu. tk_optionMenu pathName varName value ?value value ...?
options http://www.tcl.tk/man/tcl8.5/TkCmd/options.htm This manual entry describes the common configuration options supported by widgets in the Tk toolkit.
pack http://www.tcl.tk/man/tcl8.5/TkCmd/pack.htm The pack command is used to communicate with the packer, a geometry manager that arranges the children of a parent by packing them in order around the edges of the parent. pack option arg ?arg ...?
tk_setPalette http://www.tcl.tk/man/tcl8.5/TkCmd/palette.htm The tk_setPalette procedure changes the color scheme for Tk. tk_setPalette background<br />tk_setPalette name value ?name value ...?<br />tk_bisque
panedwindow http://www.tcl.tk/man/tcl8.5/TkCmd/panedwindow.htm The panedwindow command creates a new window (given by the pathName argument) and makes it into a panedwindow widget. panedwindow pathName ?options?
photo http://www.tcl.tk/man/tcl8.5/TkCmd/photo.htm A photo is an image whose pixels can display any color or be transparent. image create photo ?name? ?options?
place http://www.tcl.tk/man/tcl8.5/TkCmd/place.htm The placer is a geometry manager for Tk. place option arg ?arg ...?
tk_popup http://www.tcl.tk/man/tcl8.5/TkCmd/popup.htm This procedure posts a menu at a given position on the screen and configures Tk so that the menu and its cascaded children can be traversed with the mouse or the keyboard. tk_popup menu x y ?entry?
radiobutton http://www.tcl.tk/man/tcl8.5/TkCmd/radiobutton.htm The radiobutton command creates a new window (given by the pathName argument) and makes it into a radiobutton widget. radiobutton pathName ?options?
raise http://www.tcl.tk/man/tcl8.5/TkCmd/raise.htm If the aboveThis argument is omitted then the command raises window so that it is above all of its siblings in the stacking order (it will not be obscured by any siblings and will obscure any siblings that overlap it). raise window ?aboveThis?
scale http://www.tcl.tk/man/tcl8.5/TkCmd/scale.htm The scale command creates a new window (given by the pathName argument) and makes it into a scale widget. scale pathName ?options?
scrollbar http://www.tcl.tk/man/tcl8.5/TkCmd/scrollbar.htm The scrollbar command creates a new window (given by the pathName argument) and makes it into a scrollbar widget. scrollbar pathName ?options?
selection http://www.tcl.tk/man/tcl8.5/TkCmd/selection.htm This command provides a Tcl interface to the X selection mechanism and implements the full selection functionality described in the X Inter-Client Communication Conventions Manual (ICCCM). selection option ?arg arg ...?
send http://www.tcl.tk/man/tcl8.5/TkCmd/send.htm This command arranges for cmd (and args) to be executed in the application named by app. send ?options? app cmd ?arg arg ...?
spinbox http://www.tcl.tk/man/tcl8.5/TkCmd/spinbox.htm The spinbox command creates a new window (given by the pathName argument) and makes it into a spinbox widget. spinbox pathName ?options?
text http://www.tcl.tk/man/tcl8.5/TkCmd/text.htm The text command creates a new window (given by the pathName argument) and makes it into a text widget. text pathName ?options?<br />tk_textCopy pathName<br />tk_textCut pathName<br />tk_textPaste pathName
tk http://www.tcl.tk/man/tcl8.5/TkCmd/tk.htm The tk command provides access to miscellaneous elements of Tk's internal state. tk option ?arg arg ...?
tkerror http://www.tcl.tk/man/tcl8.5/TkCmd/tkerror.htm Note: as of Tk 4.1 the tkerror command has been renamed to bgerror because the event loop (which is what usually invokes it) is now part of Tcl. tkerror message
tkvars http://www.tcl.tk/man/tcl8.5/TkCmd/tkvars.htm The following Tcl variables are either set or used by Tk at various times in its execution: tk_library This variable holds the file name for a directory containing a library of Tcl scripts related to Tk.
tkwait http://www.tcl.tk/man/tcl8.5/TkCmd/tkwait.htm The tkwait command waits for one of several things to happen, then it returns without taking any other actions. tkwait variable name<br />tkwait visibility name<br />tkwait window name
toplevel http://www.tcl.tk/man/tcl8.5/TkCmd/toplevel.htm The toplevel command creates a new toplevel widget (given by the pathName argument). toplevel pathName ?options?
ttk::button http://www.tcl.tk/man/tcl8.5/TkCmd/ttk_button.htm A ttk::button widget displays a textual label and/or image, and evaluates a command when pressed. ttk::button pathName ?options?
ttk::checkbutton http://www.tcl.tk/man/tcl8.5/TkCmd/ttk_checkbutton.htm A ttk::checkbutton widget is used to show or change a setting. ttk::checkbutton pathName ?options?
ttk::combobox http://www.tcl.tk/man/tcl8.5/TkCmd/ttk_combobox.htm A ttk::combobox combines a text field with a pop-down list of values; the user may select the value of the text field from among the values in the list. ttk::combobox pathName ?options?
ttk::entry http://www.tcl.tk/man/tcl8.5/TkCmd/ttk_entry.htm An ttk::entry widget displays a one-line text string and allows that string to be edited by the user. ttk::entry pathName ?options?
ttk::frame http://www.tcl.tk/man/tcl8.5/TkCmd/ttk_frame.htm A ttk::frame widget is a container, used to group other widgets together. ttk::frame pathName ?options?
ttk_image http://www.tcl.tk/man/tcl8.5/TkCmd/ttk_image.htm The image element factory creates a new element in the current theme whose visual appearance is determined by Tk images. ttk::style element create name image imageSpec ?options?
ttk::label http://www.tcl.tk/man/tcl8.5/TkCmd/ttk_label.htm A ttk::label widget displays a textual label and/or image. ttk::label pathName ?options?
ttk::labelframe http://www.tcl.tk/man/tcl8.5/TkCmd/ttk_labelframe.htm A ttk::labelframe widget is a container used to group other widgets together. ttk::labelframe pathName ?options?
ttk::menubutton http://www.tcl.tk/man/tcl8.5/TkCmd/ttk_menubutton.htm A ttk::menubutton widget displays a textual label and/or image, and displays a menu when pressed. ttk::menubutton pathName ?options?
ttk::notebook http://www.tcl.tk/man/tcl8.5/TkCmd/ttk_notebook.htm A ttk::notebook widget manages a collection of windows and displays a single one at a time. ttk::notebook pathname ?options...?<br />pathname add window ?options...?<br />pathname insert index window ?options...?
ttk::panedwindow http://www.tcl.tk/man/tcl8.5/TkCmd/ttk_panedwindow.htm A ttk::panedwindow widget displays a number of subwindows, stacked either vertically or horizontally. ttk::panedwindow pathname ?options?<br />pathname add window ?options...?<br />pathname insert index window ?options...?
ttk::progressbar http://www.tcl.tk/man/tcl8.5/TkCmd/ttk_progressbar.htm A ttk::progressbar widget shows the status of a long-running operation. ttk::progressbar pathName ?options?
ttk::radiobutton http://www.tcl.tk/man/tcl8.5/TkCmd/ttk_radiobutton.htm ttk::radiobutton widgets are used in groups to show or change a set of mutually-exclusive options. ttk::radiobutton pathName ?options?
ttk::scale http://www.tcl.tk/man/tcl8.5/TkCmd/ttk_scale.htm A ttk::scale widget is typically used to control the numeric value of a linked variable that varies uniformly over some range. ttk::scale pathName ?options...?
ttk::scrollbar http://www.tcl.tk/man/tcl8.5/TkCmd/ttk_scrollbar.htm ttk::scrollbar widgets are typically linked to an associated window that displays a document of some sort, such as a file being edited or a drawing. ttk::scrollbar pathName ?options...?
ttk::separator http://www.tcl.tk/man/tcl8.5/TkCmd/ttk_separator.htm A ttk::separator widget displays a horizontal or vertical separator bar. ttk::separator pathName ?options?
ttk::sizegrip http://www.tcl.tk/man/tcl8.5/TkCmd/ttk_sizegrip.htm A ttk::sizegrip widget (also known as a grow box) allows the user to resize the containing toplevel window by pressing and dragging the grip. ttk::sizegrip pathName ?options?
ttk::spinbox http://www.tcl.tk/man/tcl8.5/TkCmd/ttk_spinbox.htm A ttk::spinbox widget is a ttk::entry widget with built-in up and down buttons that are used to either modify a numeric value or to select among a set of values. ttk::spinbox pathName ?options?
ttk::style http://www.tcl.tk/man/tcl8.5/TkCmd/ttk_style.htm The ttk::style command takes the following arguments: ttk::style configure style ?-option ?value option value...? ? Sets the default value of the specified option(s) in style. ttk::style option ?args?
ttk::treeview http://www.tcl.tk/man/tcl8.5/TkCmd/ttk_treeview.htm The ttk::treeview widget displays a hierarchical collection of items. ttk::treeview pathname ?options?
ttk_vsapi http://www.tcl.tk/man/tcl8.5/TkCmd/ttk_vsapi.htm The vsapi element factory creates a new element in the current theme whose visual appearance is drawn using the Microsoft Visual Styles API which is reponsible for the themed styles on Windows XP and Vista. ttk::style element create name vsapi className partId ?stateMap? ?options?
winfo http://www.tcl.tk/man/tcl8.5/TkCmd/winfo.htm The winfo command is used to retrieve information about windows managed by Tk. winfo option ?arg arg ...?
wm http://www.tcl.tk/man/tcl8.5/TkCmd/wm.htm The wm command is used to interact with window managers in order to control such things as the title for a window, its geometry, or the increments in terms of which it may be resized. wm option window ?args?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment