console-rs / console

A rust console and terminal abstraction
MIT License
932 stars 111 forks source link

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

Closed fadeevab closed 8 months ago

fadeevab commented 11 months ago

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 commented 11 months ago

@mitsuhiko What are your thoughts about it?..

mitsuhiko commented 8 months ago

Maybe this is acceptable. It would need documentation though