I looked through the documentation, etc., but I do not see anything obvious. I would like to have a signal handler that can intercept ^C , ^\ or another keystroke that can be used to interrupt a long-running script (each discrete calculation is usually <1s) and allows for graceful output and saving the current state.
Matlab has event handlers for COM, but these are just windows, and I'm in a * nix environment.
If the answer is βhard luckβ, Iβm cool with this ... I just donβt see anything that says I am SOL.
source share