From 4f8feab56891feba3e8358bbc5976d48ee3b4bb7 Mon Sep 17 00:00:00 2001 From: fanoush Date: Mon, 30 Sep 2024 11:53:08 +0200 Subject: [PATCH] remove commented code --- examples/rtt/web.html | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/examples/rtt/web.html b/examples/rtt/web.html index b00696c..8f24b5b 100644 --- a/examples/rtt/web.html +++ b/examples/rtt/web.html @@ -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');