I think Maxim Tretyak wrote:
> Hi
> 
> Can I get advantages of jess.Console by such a way:
> 
> Jess> (new jess.Console "Hi" (engine))
> <External-Address:jess.Console>
> 
> Console is appearing, but connand line input is transmitted directly to
> output text area, without interaction with Rete.


Very clever!

Just creating a Console doesn't do it though, there has to be a thread
running the Console.execute() method (the read-eval-print loop). You
could say 

Jess> (bind ?c (new jess.Console "Hi" (engine)))
Jess> (?c execute (create$))

The console would then work, but the original command line wouldn't
anymore; and there's no way (no easy way, anyway) to get it back. The
Console class has to reroute all of the Rete objects standard I/O
routers to connect it to the GUI; in the process, it gets disconnected
from standard I/O.


---------------------------------------------------------
Ernest Friedman-Hill  
Science and Engineering PSEs        Phone: (925) 294-2154
Sandia National Labs                FAX:   (925) 294-2234
PO Box 969, MS 9012                 [EMAIL PROTECTED]
Livermore, CA 94550         http://herzberg.ca.sandia.gov

--------------------------------------------------------------------
To unsubscribe, send the words 'unsubscribe jess-users [EMAIL PROTECTED]'
in the BODY of a message to [EMAIL PROTECTED], NOT to the list
(use your own address!) List problems? Notify [EMAIL PROTECTED]
--------------------------------------------------------------------

Reply via email to