aboutsummaryrefslogtreecommitdiff
path: root/engines/glk/agt/interface.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/glk/agt/interface.cpp')
-rw-r--r--engines/glk/agt/interface.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/engines/glk/agt/interface.cpp b/engines/glk/agt/interface.cpp
index e7875696fa..75763d3fb0 100644
--- a/engines/glk/agt/interface.cpp
+++ b/engines/glk/agt/interface.cpp
@@ -275,7 +275,12 @@ char *agt_readline(int in_type) {
s = get_log();
else
s = agt_input(in_type);
- if (PURE_INPUT) agt_textcolor(-2);
+
+ if (g_vm->shouldQuit())
+ return nullptr;
+
+ if (PURE_INPUT)
+ agt_textcolor(-2);
if (logflag & 1)
put_log(s);