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

Allow CTRL-c to stop entry in REPL #4405

Merged
merged 2 commits into from Jun 29, 2021
Merged

Allow CTRL-c to stop entry in REPL #4405

merged 2 commits into from Jun 29, 2021

Conversation

lizmat
Copy link
Contributor

@lizmat lizmat commented Jun 15, 2021

And a second CTRL-c to exit the REPL if nothing else was entered.

This in response to #4402.

This does not achieve the suggested behaviour of being able to
stop a runaway piece of code, as Raku's signal handler runs on a
different thread and we currently do not have a way to force an
exception on anything else but the current thread. It does
allow one to restart entry without having to remove all characters.

And a second CTRL-c to exit the REPL if nothing else was entered.

This in response to #4402.

This does *not* achieve the suggested behaviour of being able to
stop a runaway piece of code, as Raku's signal handler runs on a
different thread and we currently do not have a way to force an
exception on anything else but the current thread.  It *does*
allow one to restart entry without having to remove all characters.
As the REPL loop is actually inside the repl-loop method.
@lizmat lizmat merged commit cf7b4f1 into master Jun 29, 2021
@lizmat lizmat deleted the repl-control-c branch June 29, 2021 08:28
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

Successfully merging this pull request may close these issues.

None yet

1 participant