Search code examples
prologprolog-toplevel

Typing listing in SWI-prolog and pressing enter does nothing


I'm going through the prolog tutorial here and it tells me to type in listing for a list of the contents of the current knowledgebase. I'm pretty sure that without loading a KB, it should display gibberish. However, instead I have:

enter image description here

after I press enter, which does nothing. Am I doing something wrong?


Solution

  • Each statement in Prolog must be followed by a '.' in order to be executed.