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

Do not exit the shell on Ctrl-C #122

Merged
merged 1 commit into from
Sep 13, 2024
Merged

Do not exit the shell on Ctrl-C #122

merged 1 commit into from
Sep 13, 2024

Conversation

certik
Copy link
Contributor

@certik certik commented Sep 13, 2024

This only fixes pressing Ctrl-C on the command-line itself, not while running another program.

@certik
Copy link
Contributor Author

certik commented Sep 13, 2024

I tested this on both Linux and Windows, so I am going to merge this one.

@certik certik merged commit 8b08567 into prefix-dev:main Sep 13, 2024
4 checks passed
@certik certik deleted the ctrl_c branch September 13, 2024 21:13
@wolfv
Copy link
Member

wolfv commented Sep 13, 2024

I think we can use the stdc crate to capture the signal

@certik
Copy link
Contributor Author

certik commented Sep 13, 2024

I tried something similar here: #123, but couldn't get it to work.

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.

2 participants