From ceb7ff4275d70b3cfcfa23675bdf1a6773e46023 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Thu, 25 Mar 2021 19:04:29 +0100 Subject: stopwatch: add key p for pausing MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- stopwatch.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'stopwatch.c') diff --git a/stopwatch.c b/stopwatch.c index 8d5b783..7c5ec76 100644 --- a/stopwatch.c +++ b/stopwatch.c @@ -51,7 +51,7 @@ display_stopwatch(int timerfd) } if (c == 'q') { goto out; - } else if (c == ' ') { + } else if (c == ' ' || c == 'p') { paused ^= 1; if (paused) { if (timerfd_settime(timerfd, 0, &zero_time, &old_time)) -- cgit v1.2.3-70-g09d2