Am 21.06.13 16:32, schrieb Jonathan Bromley:
> I have a number of Tcl-only (no Tk) event driven scripts where I
> like to have the usual Tcl command line continue to be available
> while the event loop is running, providing me with a neat way
> to debug and inspect the running event-driven script.
I think Tloona's built in console does that. Just checked:
% proc t args {set y 0; vwait x}
% t
% info vars
args y
% info level
1
Might be a starting point for you. The relevant code is in tmw-console
in the src/ directory (here of course Itcl/Itk based and requiring Tk).
In fact it is an extended version of the great small console example in
"Practical Programming Tcl/Tk".
Here's where you find the program:
http://sourceforge.net/projects/tloona/
--
EL