Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ctrl-C in read causes exit from REPL #1097

Closed
kamahen opened this issue Jan 15, 2023 · 2 comments
Closed

ctrl-C in read causes exit from REPL #1097

kamahen opened this issue Jan 15, 2023 · 2 comments

Comments

@kamahen
Copy link
Contributor

kamahen commented Jan 15, 2023

If I interrupt a read with ctrl-C, the various debug options either do nothing (e.g., "continue") or raise "abort" or "exit". Both of the latter exit from the top-level. I'm pretty sure this is a somewhat new behavior, but haven't tried to track down when it started.

$ swipl
Welcome to SWI-Prolog (threaded, 64 bits, version 9.1.2-17-gcd86f975e-DIRTY)
SWI-Prolog comes with ABSOLUTELY NO WARRANTY. This is free software.
Please run ?- license. for legal details.

For online help and background, visit https://www.swi-prolog.org
For built-in help, use ?- help(Topic). or ?- apropos(Word).

?- foo
|    ^C
Action (h for help) ? abort
$
@kamahen
Copy link
Contributor Author

kamahen commented Jan 15, 2023

I rebuilt with the latest commit - 0a145e4 - and got the same result (except for the version # of course).

@JanWielemaker
Copy link
Member

This issue has been mentioned on SWI-Prolog. There might be relevant details there:

https://swi-prolog.discourse.group/t/cant-terminate-input-routine-or-infinite-loops-without-corrupting-prolog-session/6850/2

@kamahen kamahen changed the title ctrl-C in read leads exit from REPL ctrl-C in read causes exit from REPL Sep 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants