mirror of
https://github.com/MrUnknownDE/panel.git
synced 2026-04-16 13:23:45 +02:00
console: only flush once, not with every message
This commit is contained in:
@@ -212,9 +212,10 @@ var Console = (function () {
|
||||
|
||||
if (terminalQueue.length > 0) {
|
||||
for (var i = 0; i < CONSOLE_PUSH_COUNT && terminalQueue.length > 0; i++) {
|
||||
terminal.echo(terminalQueue[0]);
|
||||
terminal.echo(terminalQueue[0], {flush: false});
|
||||
terminalQueue.shift();
|
||||
}
|
||||
terminal.flush()
|
||||
|
||||
// Show
|
||||
if (!terminal.is_bottom()) {
|
||||
|
||||
Reference in New Issue
Block a user