console: only flush once, not with every message

This commit is contained in:
Jakob Schrettenbrunner 2017-03-19 16:18:31 +01:00
parent e8a80c6a20
commit 887e48aeb3

View file

@ -212,9 +212,10 @@ var Console = (function () {
if (terminalQueue.length > 0) { if (terminalQueue.length > 0) {
for (var i = 0; i < CONSOLE_PUSH_COUNT && terminalQueue.length > 0; i++) { for (var i = 0; i < CONSOLE_PUSH_COUNT && terminalQueue.length > 0; i++) {
terminal.echo(terminalQueue[0]); terminal.echo(terminalQueue[0], {flush: false});
terminalQueue.shift(); terminalQueue.shift();
} }
terminal.flush()
// Show // Show
if (!terminal.is_bottom()) { if (!terminal.is_bottom()) {