console: only flush once, not with every message
This commit is contained in:
parent
e8a80c6a20
commit
887e48aeb3
1 changed files with 2 additions and 1 deletions
|
@ -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()) {
|
||||||
|
|
Loading…
Reference in a new issue