PDCursesMod
PDCursesMod copied to clipboard
Ctrl-C/Ctrl-Break handling
(Mentioned to me by Mário Montes and verified on my machine.)
In Win32 (Windows console flavor), Ctrl-Break aborts a PDCurses program. There's nothing of that ilk in Win32a or other flavors of PDCurses.
In Win32a, it should be possible to add such a key, using the PDC_set_function_key( ) mechanism. We currently have five function keys; there would be a sixth, FUNCTION_KEY_ABORT, and hitting that key would cause a graceless exit. Might be possible to do similar tricks in X11, and maybe in SDL1 and/or SDL2. I don't think there's a sane way to do it in DOS.
Sounds like a low hanging fruit, handling it as exit(SIGTERM)m, shouldn't it?