To exit from the Prolog system, either type
| ?- halt.
or your end-of-file character. The end-of-file character is ^d by default. You will use a different command set to exit Prolog running under Emacs; see ema-emi-key. The commands for exiting are as follows:
halt/0
.
If you would like to pause Prolog while keeping the job in the background: