There is no substitution done on the entered text, neither is there of the contents of $msg in that line of code you posted. Thus, \002 will be printed literally, and not the control-codes you expected.
You could use the "subst" command to force another iteration of substitutions, though you'll have to be careful to not introduce remote exploits (make sure you use -nocommands -novariables for starters).
Also, this script has a few issues with mixed lists and strings, though I don't think these will affect the use of "subst".
Thanks for the information. I've solved the problem, but as I get more comfy in tcl I'll try to address the issues you mention.
nml375 wrote:There is no substitution done on the entered text, neither is there of the contents of $msg in that line of code you posted. Thus, \002 will be printed literally, and not the control-codes you expected.
You could use the "subst" command to force another iteration of substitutions, though you'll have to be careful to not introduce remote exploits (make sure you use -nocommands -novariables for starters).
Also, this script has a few issues with mixed lists and strings, though I don't think these will affect the use of "subst".