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?
I can recommend using emacs, 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.