Skip to content

Commit d439c85

Browse files
committed
ignore newly added "clear" characters in the Web Workflow serial
1 parent 57cf054 commit d439c85

File tree

1 file changed

+2
-0
lines changed
  • supervisor/shared/web_workflow/static

1 file changed

+2
-0
lines changed

supervisor/shared/web_workflow/static/serial.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,8 @@ ws.onmessage = function(e) {
4343
} else if (e.data == "\x1b[K") { // Clear line
4444
log.textContent = log.textContent.slice(0, -left_count);
4545
left_count = 0;
46+
} else if (e.data == "\x1b[2K\x1b[0G") {
47+
// ignore
4648
} else {
4749
log.textContent += e.data;
4850
}

0 commit comments

Comments
 (0)