Skip to content

Commit

Permalink
remove commented code
Browse files Browse the repository at this point in the history
  • Loading branch information
fanoush authored and thegecko committed Oct 19, 2024
1 parent d5700f1 commit 4f8feab
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions examples/rtt/web.html
Original file line number Diff line number Diff line change
Expand Up @@ -120,13 +120,10 @@
const printable = !ev.altKey && !ev.ctrlKey && !ev.metaKey;

if (ev.keyCode === 13) { // process newline
// allow empty lines too
// if (line_input.length) {
term.write('\r\n');
cmd = line_input + "\r\n";
console.log('sending: \"' + line_input + '\"');
line_input = "";
//}
term.write('\r\n');
cmd = line_input + "\r\n";
console.log('sending: \"' + line_input + '\"');
line_input = "";
} else if (ev.keyCode === 8) { // process backspace
if (term._core.buffer.x > 0) {
term.write('\b \b');
Expand Down

0 comments on commit 4f8feab

Please sign in to comment.