From ffa586c694a13a6958b5c6de921c6ad0c40505fa Mon Sep 17 00:00:00 2001 From: Carsten Larsen Date: Fri, 15 Jan 2021 00:20:47 +0100 Subject: [PATCH] Allow to quit console with CTRL + C --- src/system/console_amiga.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/system/console_amiga.cpp b/src/system/console_amiga.cpp index 390098cc..728ef95c 100644 --- a/src/system/console_amiga.cpp +++ b/src/system/console_amiga.cpp @@ -80,6 +80,11 @@ void AmigaShellConsole::ReadLine() { Flush(Input()); FGets(Input(), line, linesize); + + if (CheckSignal(SIGBREAKF_CTRL_C)) + { + exit = true; + } } void AmigaShellConsole::WriteString(const char* string)