I've installed SWI-Prolog and Emacs' prolog mode. I have a first_steps.pl
file with prolog in it, and I do C-c C-b
to consult the buffer. This opens a second buffer, *prolog*
, whose mode is (Inferior Prolog: run)
.
All well and good. However, it's completely unclear how to interact with that inferior prolog mode buffer. There is no prompt. Typing things and pressing return does nothing. How can I execute queries based on the code consulted from the buffer, i.e, interact with SWI-prolog?
Note that this related question does not seem to address usage of the inferior mode, only installation of prolog mode: Using prolog with emacs