Top "Tcl" questions

Tool Command Language was invented by John Ousterhout as a way to make it easy to write little languages for configuring EDA tools, but it has grown far beyond those humble beginnings to become a general scripting language with built-in asynchronous I/O and Unicode strings while supporting paradigms such as object-oriented programming and coroutines.

General string quoting for TCL

I'm writing a utility (which happens to be in python) which is generating output in the form of a TCL …

tcl quoting
how to convert a list into string in tcl

How do I convert a list into string in Tcl?

tcl
How to get the results (standard output) of a TCL exec command?

Say I have a TCL script like this: exec ls -l Now this will print out the content of current …

exec tcl
IDLE warns against an old TCL version even though I've installed a newer version

I have installed ActiveTcl8.6.1.1.297588-macosx10.5-i386-x86_64-threaded on my OS X 10.9.1 . However, when I launch IDLE by running idle3 …

macos tcl python-idle
how do I sent escape character ^] through a spawned telnet session?

I am able to open a spawned telnet session in a shell script to run some commands. Afterwards, I am …

tcl telnet
Passing list to Tcl procedure

What is the canonical way to pass a list to a Tcl procedure? I'd really like it if I could …

list arguments tcl
How put Block Comments in TCL

I have code here proc checkPrime {no} { set i 1 set count 0 while {$i < $no} { if {{$no%$i} eq 0} { incr …

tcl
how the upvar command works in TCL?

I have a question about upvar command in TCL. Using upvar command, we have have a reference to a global …

tcl upvar
TCL: Recursively search subdirectories to source all .tcl files

I have a main TCL proc that sources tons of other tcl procs in other folders and subsequent subdirectories. For …

tcl
tcl command redirect to a variable, tcl version is 8.4

I want to redirect the output of 1 command to a variable, where the OUTPUT is usually to STDOUT. I am …

tcl output-redirect