Consult prolog file in Termux android

Greetings all;
I recently tried using Prolog in android through Termux. I am able to run SWI-Prolog preicates in Termux, but I cannot consult a prolog file there. I have received that file in the download folder via Bluetooth. I tried mentioning relative path (“./ or .~/”) while consuting but nothing worked. Is there any way I can achieve this? Also please acquaint me with any alternate method to use prolog in android. I do not want to merely run Prolog in a terminal in android but want it to be able to interact with the android system as well.

1 Like

I think you should execute termux-setup-storage, as suggested here.

edit
Thanks to your question I did a quick test of my last post about PDF generation, by means of jsPDF running in a browser served by SWI-Prolog HTTP on localhost
It works, then seems to be an easy way to implement usable and fairly generalized UI