From 720f98b8ab509ae410840838b25a0e0337e50c92 Mon Sep 17 00:00:00 2001 From: the lemons Date: Tue, 7 Feb 2023 19:17:27 -0600 Subject: stop the process with space --- core.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/core.c b/core.c index 7129bbc..de685b6 100644 --- a/core.c +++ b/core.c @@ -4,6 +4,7 @@ #include #include #include +#include #include #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; } -- cgit v1.2.3