From 55027081db768e89b697ee425207dfbbf3317b4d Mon Sep 17 00:00:00 2001 From: mazze Date: Sun, 3 Sep 2017 18:56:51 +0000 Subject: [PATCH] gfxinfo: allow loop interruption by pressing CTRL+C. That's usefull on m68k because it's slow and the list can be quite large. git-svn-id: https://svn.aros.org/svn/aros/trunk/AROS@54910 fb15a70f-31f2-0310-bbcc-cdcc74a49acc --- developer/debug/test/graphics/gfxinfo.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/developer/debug/test/graphics/gfxinfo.c b/developer/debug/test/graphics/gfxinfo.c index a9a293b060..5db70b1c5a 100644 --- a/developer/debug/test/graphics/gfxinfo.c +++ b/developer/debug/test/graphics/gfxinfo.c @@ -238,6 +238,12 @@ int main(void) if (!args.nomodes) { printf("*********** Display modes **********\n\n"); for (;;) { + if (SetSignal(0, SIGBREAKF_CTRL_C) & SIGBREAKF_CTRL_C) + { + printf("\n*** break\n"); + break; + } + ULONG len; modeid = NextDisplayInfo(modeid); -- 2.11.4.GIT