mirror of
https://github.com/dingusdev/dingusppc.git
synced 2024-11-17 15:08:08 +00:00
Gracefully exit upon EOF
Taken from #94 - Originally fixed by dressupgeekout and refined by joevt
This commit is contained in:
parent
ce5edcb0c8
commit
c0e28b81a8
@ -530,6 +530,11 @@ void enter_debugger() {
|
||||
continue;
|
||||
}
|
||||
|
||||
if (feof(stdin)) {
|
||||
printf("eof -> quit\n");
|
||||
cmd = "quit";
|
||||
}
|
||||
|
||||
cmd_repeat = cmd.empty() && !last_cmd.empty();
|
||||
if (cmd_repeat) {
|
||||
cmd = last_cmd;
|
||||
|
Loading…
Reference in New Issue
Block a user