Replies: 1 comment
-
|
I have a package that helps with this: https://github.com/andrewchambers/janet-ctrl-c - it requires the janet event loop to work and is currently linux only. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
When I'm running my program and press ctrl+c to stop it, is there some way to capture that so my program can do a little cleanup? I tried using
deferfor this but that doesn't work if the whole program is terminated.Beta Was this translation helpful? Give feedback.
All reactions