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

[WIP][PoC] Return Ctrl+C instead of SIGINT #189

Merged
merged 1 commit into from
Jan 9, 2024
Merged

[WIP][PoC] Return Ctrl+C instead of SIGINT #189

merged 1 commit into from
Jan 9, 2024

Conversation

fadeevab
Copy link
Contributor

@fadeevab fadeevab commented Oct 18, 2023

Would it be an acceptable option to deal with a "Ctrl+C problem" (issue #172)?
Problem: SIGINT leaves the terminal in a raw mode or keeps a hidden cursor, and also, it's impossible to handle Ctrl+C gracefully.

This PoC works on Linux as of now.
Tested with cliclack

@fadeevab
Copy link
Contributor Author

@mitsuhiko What are your thoughts about it?..

@mitsuhiko
Copy link
Collaborator

Maybe this is acceptable. It would need documentation though

@mitsuhiko mitsuhiko merged commit b1e432a into console-rs:master Jan 9, 2024
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

2 participants