mirror of
https://gitlab.com/rnger/amath
synced 2025-11-21 18:08:39 +00:00
Allow to quit console with CTRL + C
This commit is contained in:
@ -80,6 +80,11 @@ void AmigaShellConsole::ReadLine()
|
|||||||
{
|
{
|
||||||
Flush(Input());
|
Flush(Input());
|
||||||
FGets(Input(), line, linesize);
|
FGets(Input(), line, linesize);
|
||||||
|
|
||||||
|
if (CheckSignal(SIGBREAKF_CTRL_C))
|
||||||
|
{
|
||||||
|
exit = true;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void AmigaShellConsole::WriteString(const char* string)
|
void AmigaShellConsole::WriteString(const char* string)
|
||||||
|
|||||||
Reference in New Issue
Block a user