Capture OS signals during promptsSee original GitHub issue
I have an application that needs to capture and handle OS signals (SIGINT), but it seems like inputs and Select has hardcoded logic for control+c, ending with a
Deno.exit(0). I would like to be able to tell cliffy to not exit immediately, but to give me control to properly clean things up before exiting. I’d be up for making a PR for any solution that is of interest. One idea is to offer a callback option.
- Created 3 years ago
- Comments:9 (9 by maintainers)