login

Availability:built-in
[ISO]halt
Terminate Prolog execution. Open files are closed, and if the command line option -tty is not active the terminal status (see Unix stty(1)) is restored. Hooks may be registered both in Prolog and in foreign code. Prolog hooks are registered using at_halt/1. halt/0 is equivalent to halt(0).bugIn the multithreaded version, halt/0 does not work when not called from the main thread. In the current system a permission_error exception is raised. Future versions may enable halt/0 from any thread.