From 3f32b9f6f9affb8e8c3b5339c30e957b201cd73e Mon Sep 17 00:00:00 2001 From: Devine Lu Linvega Date: Fri, 3 Jun 2022 14:54:40 -0700 Subject: [PATCH] Stop on System/halt --- src/uxn11.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/uxn11.c b/src/uxn11.c index e68300f..10f23f6 100644 --- a/src/uxn11.c +++ b/src/uxn11.c @@ -246,6 +246,8 @@ main(int argc, char **argv) fds[0].events = fds[1].events = POLLIN; /* main loop */ while(1) { + if(u.dev[0x0f]) + break; if(poll(fds, 2, 1000) <= 0) continue; while(XPending(display))