summaryrefslogtreecommitdiff
path: root/js/prolog.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/prolog.js')
-rw-r--r--js/prolog.js5
1 files changed, 1 insertions, 4 deletions
diff --git a/js/prolog.js b/js/prolog.js
index 1c811ed..ecec0f3 100644
--- a/js/prolog.js
+++ b/js/prolog.js
@@ -8,7 +8,6 @@
var makePrologTerminalHandler = function (jqConsole, editor, problem_id, activityHandler) {
var promptMode = true, // default: query composition; alternative: query result browsing
- manualStop = false, // if the user stopped showing next answers (false) or if there are no more answers (true)
terminal = codeq.makeConsole(jqConsole, {
'greeting': 'CodeQ Prolog terminal proxy'
}),
@@ -25,7 +24,7 @@
}
if (promptMode) {
terminal.setLineBuffered();
- terminal.append(manualStop ? '?- ' : '.\n?- ', 'output');
+ terminal.append('.\n?- ', 'output');
}
},
tcf = function terminalCommandFailed (error) {
@@ -50,7 +49,6 @@
terminal.onInput = function (command) {
if (promptMode) {
promptMode = false;
- manualStop = false;
terminal.setNotBuffered();
return codeq.comms.sendQuery({
'problem_id': problem_id,
@@ -72,7 +70,6 @@
}
else {
// stop searching for answers
- manualStop = true;
return codeq.comms.sendQuery({
'problem_id': problem_id,
'step': 'end',