Search code examples
prologprolog-toplevel

Moving to previous query in XSB or Ciao (Prolog)


While using swi-prolog, one can recall previous query using the UP arrow key (at the terminal). How can this be achieved in XSB or Ciao prolog systems?


Solution

  • I can recommend using , running a shell in an emacs buffer (with a "dumb" terminal).

    That way I can use META-P (Alt-P) to suggest previous commands.

    Running a shell in emacs has many other advantages: find/replace, save to disk, to name a few.