We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d5700f1 commit 4f8feabCopy full SHA for 4f8feab
examples/rtt/web.html
@@ -120,13 +120,10 @@
120
const printable = !ev.altKey && !ev.ctrlKey && !ev.metaKey;
121
122
if (ev.keyCode === 13) { // process newline
123
- // allow empty lines too
124
- // if (line_input.length) {
125
- term.write('\r\n');
126
- cmd = line_input + "\r\n";
127
- console.log('sending: \"' + line_input + '\"');
128
- line_input = "";
129
- //}
+ term.write('\r\n');
+ cmd = line_input + "\r\n";
+ console.log('sending: \"' + line_input + '\"');
+ line_input = "";
130
} else if (ev.keyCode === 8) { // process backspace
131
if (term._core.buffer.x > 0) {
132
term.write('\b \b');
0 commit comments