Skip to content

Commit af2c232

Browse files
authored
Merge pull request #9934 from Neradoc/web-serial-ignore-clear
Ignore added "line clear" characters in the Web Workflow serial
2 parents 624d6f1 + d439c85 commit af2c232

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)