Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

How to get Soar to talk to new Tk displays?

displays SOAR talk tk
0
Posted

How to get Soar to talk to new Tk displays?

0

• 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

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123