« Return to Thread: Getting hook to the (a) prolog console from Java

Re: Getting hook to the (a) prolog console from Java

by Paul Singleton :: Rate this Message:

Reply to Author | View in Thread

Ivo Swartjes wrote:
> Hi,
>
> Is there a way to somehow get access to the SWI-Prolog environment that
> JPL uses via a console? Ideally I'd like to be able for instance to
> start plwin.exe halfway the execution of my Java software to gain access
> to the Prolog environment (including its state established by running
> the software) and run some queries (for testing purposes).
> Alternatively, I would not mind handling input and output from prolog
> within my application itself. Is there any way to do this?

Have a look at attach_console/0 in the Ref Manual 8.5.1 Debugging threads

   http://gollem.science.uva.nl/SWI-Prolog/Manual/thutil.html#sec:8.5.1

> I looked into the manual and found prolog_ide/1 which apparently is not
> what I'm looking for.
>
> Thanks,
> Ivo
>
> ------------
> For further info, please visit http://www.swi-prolog.org/
>
> To unsubscribe, send a plaintext mail with "unsubscribe prolog <e-mail>"
> in its body to majordomo@...

Paul Singleton

------------
For further info, please visit http://www.swi-prolog.org/

To unsubscribe, send a plaintext mail with "unsubscribe prolog <e-mail>"
in its body to majordomo@...

 « Return to Thread: Getting hook to the (a) prolog console from Java