Name

info

info option [arg...]

Return information about the Tcl interpreter.

info args procname

Return a list of the argument names to procedure procname.

info body procname

Return the body of procedure procname.

info cmdcount

Return total count of commands invoked by the interpreter.

info commands [pattern]

Return a list of Tcl commands (built-in and procedures) matching pattern. Return all commands if pattern is omitted.

info complete command

Return 1 if command is complete (i.e., no unmatched quotes, braces, etc.).

info default procname arg varname

Return 1 if argument arg of procedure procname has a default argument value, otherwise 0. If there is a default value, it is placed in variable varname.

info exists varName

Return 1 if local or global variable varName exists.

info globals [ pattern]

Return a list of global variables matching pattern. Return all variable names if pattern is omitted.

info hostname

Return system hostname.

info level [number]

If number is not specified, return a number indicating the current procedure stack level, or 0 for global level. With number, return a list containing the name and arguments for the procedure at the specified stack level.

info library

Return the name of the standard Tcl library directory; the same as global variable tcl_library.

info loaded [interp]

Return a list of the currently loaded packages for interpreter interp (default is for all interpreters; use empty string for current interpreter).

info locals [pattern]

Return list of local variables, including procedure ...

Get Tcl/Tk in a Nutshell now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.