]> Repositorios git - scryer-prolog.git/commitdiff
halt on Ctrl-D in toplevel (#473)
authorMark Thom <[email protected]>
Sat, 9 May 2020 21:04:30 +0000 (15:04 -0600)
committerMark Thom <[email protected]>
Sat, 9 May 2020 21:04:36 +0000 (15:04 -0600)
src/prolog/toplevel.pl

index 6bece8605b9ffd30226bfe7e0ff6df0370cb0ed9..d8f8e8fb664ab7902b40b33cb21b25478aeca72e 100644 (file)
@@ -127,6 +127,8 @@ instruction_match(Term, VarList) :-
                                   print_exception_with_check(E))
                      )
     ;
+    Term = end_of_file -> halt
+    ;
     submit_query_and_print_results(Term, VarList)
     ).