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 5790cef commit 8f0d900Copy full SHA for 8f0d900
examples/rtt/web.html
@@ -120,12 +120,13 @@
120
const printable = !ev.altKey && !ev.ctrlKey && !ev.metaKey;
121
122
if (ev.keyCode === 13) { // process newline
123
- if (line_input.length) {
+ // allow empty lines too
124
+ // if (line_input.length) {
125
term.write('\r\n');
126
cmd = line_input;
127
console.log('sending: \"' + line_input + '\"');
128
line_input = "";
- }
129
+ //}
130
} else if (ev.keyCode === 8) { // process backspace
131
if (term._core.buffer.x > 0) {
132
term.write('\b \b');
0 commit comments