All manuals Tcl
Tcl Built-In Commands
150 commands
A
- after Execute a command after a time delay cancel idle info
- append Append to variable
- apply Apply an anonymous function
- argc Variables used by Tcl
- argv Variables used by Tcl
- argv0 Variables used by Tcl
- array Manipulate array variables anymore default default exists default get default set default unset donesearch exists for get names nextelement set size startsearch statistics unset
- auto_execok Standard library of Tcl procedures
- auto_import Standard library of Tcl procedures
- auto_load Standard library of Tcl procedures
- auto_mkindex Standard library of Tcl procedures
- auto_path Variables used by Tcl
- auto_qualify Standard library of Tcl procedures
- auto_reset Standard library of Tcl procedures
B
- bgerror Command invoked to process background errors
- binary Insert and extract fields from binary strings
- break Abort looping command
- buildinfo Build info clang commit compiledebug compiler compilestats cplusplus debug gcc icc ilp32 memdebug msvc nmake no-deprecate no-thread no-optimize objective-c objective-cplusplus patchlevel profile purify static tommath version zlib
C
- catch Evaluate script and trap exceptional returns
- cd Change working directory
- chan Read, write and manipulate channels blocked close configure copy create eof event flush gets isbinary names pending pipe pop postevent push puts read seek tell truncate
- clock Obtain and manipulate dates and times add clicks format microseconds milliseconds scan seconds
- close Close an open channel
- concat Join lists together
- const Create and initialize a constant
- continue Skip to the next iteration of a loop
- coroinject Create and produce values from coroutines
- coroprobe Create and produce values from coroutines
- coroutine Create and produce values from coroutines
D
- dict Manipulate dictionaries append create exists filter for get getdef getwithdefault incr info keys lappend map merge remove replace set size unset update values with
E
- encoding Manipulate encodings convertfrom convertto dirs names profiles system user
- env Variables used by Tcl
- eof Check for end of file condition on channel
- error Generate an error
- errorCode Variables used by Tcl
- errorInfo Variables used by Tcl
- eval Evaluate a Tcl script
- exec Invoke subprocesses
- exit End the application
- expr Evaluate an expression
F
- fblocked Test whether the last input operation exhausted all available input
- fconfigure Set and get options on a channel
- fcopy Copy data from one channel to another
- file Manipulate file names and attributes atime attributes channels copy delete dirname executable exists extension home isdirectory isfile join link lstat mkdir mtime nativename normalize owned pathtype readable readlink rename rootname separator size split stat system tail tempdir tempfile tildeexpand type volumes writable
- fileevent Execute a script when a channel becomes readable or writable
- filename File name conventions supported by Tcl commands
- flush Flush buffered output for a channel
- for 'For' loop
- foreach Iterate over all elements in one or more lists
- foreachLine Standard library of Tcl procedures
- format Format a string in the style of sprintf
G
- gets Read a line from a channel
- glob Return names of files that match patterns
- global Access global variables
H
I
- if Execute scripts conditionally
- incr Increment the value of a variable
- info Information about the state of the Tcl interpreter args body class cmdcount cmdtype commands complete constant consts coroutine default errorstack exists frame functions globals hostname level library loaded locals nameofexecutable object patchlevel procs script sharedlibextension tclversion vars class call class constructor class definition class definitionnamespace class destructor class filters class forward class instances class methods class methodtype class mixins class properties class subclasses class superclasses class variables object call object class object creationid object definition object filters object forward object isa object isa class object isa metaclass object isa mixin object isa object object isa typeof object methods object methodtype object mixins object namespace object properties object variables object vars
- interp Create and manipulate Tcl interpreters alias aliases bgerror cancel children create debug delete eval exists expose hide hidden invokehidden issafe limit marktrusted recursionlimit share target transfer
J
- join Create a string by joining together list elements
L
- lappend Append list elements onto a variable
- lassign Assign list elements to variables
- ledit Replace elements of a list stored in variable
- lindex Retrieve an element from a list
- linsert Insert elements into a list
- list Create a list
- llength Count the number of elements in a list
- lmap Iterate over all elements in one or more lists and collect results
- load Load machine code and initialize new commands
- lpop Get and remove an element in a list
- lrange Return one or more adjacent elements from a list
- lremove Remove elements from a list by index
- lrepeat Build a list by repeating elements
- lreplace Replace elements in a list with new elements
- lreverse Reverse the order of a list
- lsearch See if a list contains a particular element
- lseq Build a numeric sequence returned as a list
- lset Change an element in a list
- lsort Sort the elements of a list
M
- memory Control Tcl memory debugging capabilities active break_on_malloc info init objs onexit tag trace trace_on_at_malloc validate
N
- namespace Create and manipulate contexts for commands and variables children code current delete ensemble eval exists export forget import inscope origin parent path qualifiers tail upvar unknown which ensemble create ensemble configure ensemble exists
O
- open Open a file-based or command pipeline channel
P
- package Facilities for package loading and version control files forget ifneeded names present provide require require -exact unknown vcompare versions vsatisfies prefer
- parray Standard library of Tcl procedures
- pid Retrieve process identifiers
- pkg::create Construct an appropriate 'package ifneeded' command for a given package specification
- pkg_mkIndex Build an index for automatic loading of packages
- proc Create a Tcl procedure
- puts Write to a channel
- pwd Return the absolute path of the current working directory
R
- re_syntax Syntax of Tcl regular expressions
- read Read from a channel
- readFile Standard library of Tcl procedures
- refchan Command handler API for channels implemented in Tcl code
- regexp Match a regular expression against a string
- regsub Perform substitutions based on regular expression pattern matching
- rename Rename or delete a command
- return Return from a procedure, or set return code of a script
S
- safe Creating and manipulating safe interpreters
- scan Parse string using conversion specifiers in the style of sscanf
- seek Change the access position for an open channel
- set Read and write variables
- socket Open a TCP network connection
- source Evaluate a file or resource as a Tcl script
- split Split a string into a proper Tcl list
- string Manipulate strings cat compare equal first index insert is last length map match range repeat replace reverse tolower totitle toupper trim trimleft trimright wordend wordstart
- subst Perform backslash, command, and variable substitutions
- switch Evaluate one of several scripts, depending on a given value
T
- tailcall Replace the current procedure with another command
- Tcl Tool Command Language
- tcl::prefix Facilities for prefix matching all longest match
- tcl::process Subprocess management autopurge list purge status
- tcl_endOfWord Standard library of Tcl procedures
- tcl_findLibrary Standard library of Tcl procedures
- tcl_interactive Variables used by Tcl
- tcl_library Variables used by Tcl
- tcl_nonwordchars Standard library of Tcl procedures
- tcl_patchLevel Variables used by Tcl
- tcl_pkgPath Variables used by Tcl
- tcl_platform Variables used by Tcl
- tcl_rcFileName Variables used by Tcl
- tcl_startOfNextWord Standard library of Tcl procedures
- tcl_startOfPreviousWord Standard library of Tcl procedures
- tcl_traceCompile Variables used by Tcl
- tcl_traceExec Variables used by Tcl
- tcl_version Variables used by Tcl
- tcl_wordBreakAfter Standard library of Tcl procedures
- tcl_wordBreakBefore Standard library of Tcl procedures
- tcl_wordchars Standard library of Tcl procedures
- tell Return current access position for an open channel
- throw Generate a machine-readable error
- time Time the execution of a script
- timerate Calibrated performance measurements of script execution time
- tm Facilities for locating and loading of Tcl Modules ::tcl::tm::path add ::tcl::tm::path remove ::tcl::tm::path list file normalize [info library]/../tcl file normalize EXEC/tcl
- trace Monitor variable accesses, command usages and command executions add add command add execution add variable remove remove command remove execution remove variable info info command info execution info variable
- transchan Command handler API for channel transforms implemented in Tcl code
- try Trap and process errors and exceptions
U
- unknown Handle attempts to use non-existent commands
- unload Unload machine code
- unset Delete variables
- update Process pending events and idle callbacks
- uplevel Execute a script in a different stack frame
- upvar Create link to variable in a different stack frame
V
- variable Create and initialize a namespace variable
- vwait Process events until a variable is written
W
- while Execute script repeatedly as long as a condition is met
- writeFile Standard library of Tcl procedures
Y
Z
- zlib Compression and decompression operations compress decompress deflate gunzip gzip inflate push stream stream compress stream decompress stream deflate stream gunzip stream gzip stream inflate adler32 crc32
Copyright#
- Copyright © 1990-1994 The Regents of the University of California
- Copyright © 1992-1999 Karl Lehenbauer & Mark Diekhans
- Copyright © 1993-1997 Bell Labs Innovations for Lucent Technologies
- Copyright © 1994-2000 Sun Microsystems, Inc
- Copyright © 1998-2000 Ajuba Solutions
- Copyright © 1998-2000 Scriptics Corporation
- Copyright © 2001-2023 Donal K. Fellows
- Copyright © 2001-2005 Kevin B. Kenny <kennykb@acm.org>. All rights reserved
- Copyright © 2003 George Petasis <petasis@iit.demokritos.gr>
- Copyright © 2003 Simon Geard. All rights reserved
- Copyright © 2004-2010 Andreas Kupries <andreas_kupries@users.sourceforge.net>
- Copyright © 2005 Sergey Brester aka sebres
- Copyright © 2006-2008 Joe Mistachkin
- Copyright © 2006 Miguel Sofer
- Copyright © 2008 Pat Thoyts
- Copyright © 2008 Peter Spjuth <pspjuth@users.sourceforge.net>
- Copyright © 2012 Trevor Davel
- Copyright © 2017 Frederic Bonnet
- Copyright © 2018 Peter Spjuth. All rights reserved
- Copyright © 2022 Ashok P. Nadkarni <apnmbx-public@yahoo.com>. All rights reserved
- Copyright © 2022 Eric Taylor. All rights reserved
- Copyright © 2025 Jan Nijtmans