diff options
-rw-r--r-- | core.c | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -4,6 +4,7 @@ #include <stdbool.h> #include <unistd.h> #include <assert.h> +#include <signal.h> #include <SDL.h> #include "procfs.h" @@ -168,6 +169,11 @@ static void handle_events() { prev_map(); refresh = true; break; + case SDLK_SPACE:; + static bool stopped = false; + kill(pid, stopped ? SIGSTOP : SIGCONT); + stopped = !stopped; + break; default: break; } |