summaryrefslogtreecommitdiff
path: root/js/prolog.js
diff options
context:
space:
mode:
authorAleš Smodiš <aless@guru.si>2015-09-16 13:18:49 +0200
committerAleš Smodiš <aless@guru.si>2015-09-16 13:18:49 +0200
commitc2b7956557835b1a232a84bdb262a700924a1538 (patch)
treebfbbe6034bf0232cdd746b86c072800c9db89efa /js/prolog.js
parentd10866be04d45fc73eddce0ec7005161e69e97a2 (diff)
Bugfix: console must not collapse spaces.
Diffstat (limited to 'js/prolog.js')
-rw-r--r--js/prolog.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/js/prolog.js b/js/prolog.js
index ebce9bf..2868830 100644
--- a/js/prolog.js
+++ b/js/prolog.js
@@ -19,12 +19,12 @@
promptMode = !t.have_more;
}
else {
- terminal.error(data.message, 'error');
+ terminal.append(data.message, 'error');
promptMode = true;
}
if (promptMode) {
terminal.setLineBuffered();
- terminal.append('\n?- ', 'output');
+ terminal.append('.\n?- ', 'output');
}
},
tcf = function terminalCommandFailed (error) {
@@ -59,7 +59,7 @@
}, problem_id).then(tcs, tcf);
}
else {
- terminal.append('\n');
+ terminal.append('\n', 'input');
if (command == ';') {
// show next answer
return codeq.comms.sendQuery({