How to get Soar to talk to new Tk displays?
• Redirect an agent’s output Question: I am trying to create a child interpreter in Tcl/Tk that displays some graphics. I also have a text widget that I want to display Soar’s output. I then try to alias “puts” to a command that writes to the text widget, interp alias {} puts {} WriteLog. In short, I want something like the TSI. The problem is that Soar continue to direct it’s output to the shell. Doesn’t Soar use puts or have I missed something? Answer (Karen Coulter wrote): Please, take a look at “help output-strings-destination”. This command allows you to redirect an agent’s output to another procedure, which is basically what a Tk text widget really is. “puts” is a Tcl command which will not do what you want, but you could possibly use your method below if you used “echo” instead. Please, see “help echo”. • Adjust output from an agent There is a question whether it is possible to redirect the string destination of some agent interpret to the “interaction window”. As an answer for