mirror of https://gitlab.com/rnger/amath
Allow to quit console with CTRL + C
This commit is contained in:
parent
0240d3a439
commit
ffa586c694
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue