-
I'm trying to get ediprolog.el working with the docker image of scryer prolog. I've been able to get ediprolog working with the apt installed swi-prolog and the snap for swi-prolog, but when I try with the docker version of scryer-prolog, I get errors. Here are some of the things I've tried. For each setup, I've been trying to run
The comments after each setup are what I see in ediprolog-history.
I've also tried using a wrapper shell script that works fine when called on the command line, but not when ediprolog starts it. Additionally, I've tried using the elisp debugger to track down the problem, but haven't been able to find it (probably because I am not vary familiar with it). Has anyone else tried this and gotten it working? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 13 replies
-
This is probably obvious to seasoned emacs users, but the output from that last example actually looks like this in the buffer (the above was a copy/paste):
I may have made a little progress on this. Here's a snippet from the
It expects the prompt to be at the start of the line, but that's not the case because of the ANSI escape codes. I'm still not sure where the problem is though. I'll keep looking. |
Beta Was this translation helpful? Give feedback.
The presence of ANSI escape codes seems to indicate that Scryer does not detect that it is being used in an environment that cannot interpret them.
You can try setting the environment variable
TERM
to the valuedumb
before launching Scryer Prolog. This is the value I get when I useediprolog.el
within Emacs. For instance, here is a portion of the*ediprolog-history*
buffer after querying the environment variable withgetenv/2
within Emacs: