Skip to content

Commit

Permalink
more
Browse files Browse the repository at this point in the history
  • Loading branch information
rtestardi committed Jan 9, 2024
1 parent 346e719 commit 9931f25
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions usbte.minimal.html
Original file line number Diff line number Diff line change
Expand Up @@ -113,12 +113,7 @@ <h1>Web USB Terminal Emulator</h1>
result = await reader.read();
str = dec.decode(result.value);
}
if (str.match(/\033[[]2J/)) {
// clear screen on cls XXX -- misses fragmented escape
Clear();
} else {
document.getElementById("results").innerHTML += str.replace(/</g,'&lt;').replace(/>/g,'&gt;').replace(/\n/g,'');
}
document.getElementById("results").innerHTML += str.replace(/</g,'&lt;').replace(/>/g,'&gt;').replace(/\n/g,'');
document.getElementById("command").scrollIntoView();
setTimeout(Receive, 10);
}
Expand Down

0 comments on commit 9931f25

Please sign in to comment.