How catch ctrl-c in lua when ctrl-c is sent via the command line <p>I would like to know when the user from a command line presses control-c so I can save some stuff. </p> <p>How do I do this? I've looked but haven't really seen anything.</p> <p>Note: I'm somewhat familiar with lua, but I'm no expert. I mostly use lua to use the library Torch (<a href="http://torch.ch/">http://torch.ch/</a>)</p>