ENABLE Ctrl-C?

Hi,

i wrote a small program that uses SDL for image processing.
Sometimes something goes wrong and i’d like to interrupt
a running program with Ctrl-C.

What do i need to do to ENABLE Ctrl-C?

I use SDL on Linux.

Thanks for any hints,
Torsten.

Quoth Torsten Mohr , on 2004-10-03 20:32:40 +0200:

Hi,

i wrote a small program that uses SDL for image processing.
Sometimes something goes wrong and i’d like to interrupt
a running program with Ctrl-C.

What do i need to do to ENABLE Ctrl-C?

C-c sends a SIGINT signal under Linux and similar platforms. SDL
traps this and generates an SDL_QUIT event, which you can handle as
desired.

—> Drake Wilson
-------------- next part --------------
A non-text attachment was scrubbed…
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: http://lists.libsdl.org/pipermail/sdl-libsdl.org/attachments/20041003/2b08c65a/attachment.pgp