PDCursesMod icon indicating copy to clipboard operation
PDCursesMod copied to clipboard

Ctrl-C/Ctrl-Break handling

Open Bill-Gray opened this issue 8 years ago • 5 comments

(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.

Bill-Gray avatar Dec 12 '16 01:12 Bill-Gray

Sounds like a low hanging fruit, handling it as exit(SIGTERM)m, shouldn't it?

GitMensch avatar Mar 14 '21 12:03 GitMensch