diff options
Diffstat (limited to 'engines/glk/alan2/readline.cpp')
-rw-r--r-- | engines/glk/alan2/readline.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/engines/glk/alan2/readline.cpp b/engines/glk/alan2/readline.cpp index c96b26c13d..5f1192df5a 100644 --- a/engines/glk/alan2/readline.cpp +++ b/engines/glk/alan2/readline.cpp @@ -53,7 +53,11 @@ Boolean readline(char usrbuf[]) g_vm->glk_select(&event); if (evtype_Arrange == event.type) statusline(); + if (g_vm->shouldQuit()) + return false; + } while (event.type != evtype_LineInput); + usrbuf[event.val1] = 0; return TRUE; } |