Skip to content

Commit

Permalink
Merge pull request #9934 from Neradoc/web-serial-ignore-clear
Browse files Browse the repository at this point in the history
Ignore added "line clear" characters in the Web Workflow serial
  • Loading branch information
tannewt authored Jan 6, 2025
2 parents 624d6f1 + d439c85 commit af2c232
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions supervisor/shared/web_workflow/static/serial.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@ ws.onmessage = function(e) {
} else if (e.data == "\x1b[K") { // Clear line
log.textContent = log.textContent.slice(0, -left_count);
left_count = 0;
} else if (e.data == "\x1b[2K\x1b[0G") {
// ignore
} else {
log.textContent += e.data;
}
Expand Down

0 comments on commit af2c232

Please sign in to comment.