Skip to content
Snippets Groups Projects
Commit 0a90a39d authored by Rob Swindell's avatar Rob Swindell :speech_balloon:
Browse files

Send CRLF terminated strings with -S option instead of CR-terminated

Telnet requires CRLF or CR/NUL instead of bare CR.
parent 0878b175
No related branches found
No related tags found
1 merge request!455Update branch with changes from master
......@@ -10,7 +10,7 @@
// -P don't pause for user key-press
// -C don't clear screen after successful session
// -s <string-to-send after connect> (multiple may be specified)
// -S <CR-terminated-string-to-send> (multiple may be specified)
// -S <CRLF-terminated-string-to-send> (multiple may be specified)
// legacy usage (still supported, but deprecated):
// ?telgate address[:port] [telnet-gateway-mode]
......@@ -65,7 +65,7 @@ for(var i = 0; i < argv.length; i++) {
send.push(value);
break;
case 'S':
send.push(value + '\r');
send.push(value + '\r\n');
break;
default:
alert(js.exec_file + ": Unrecognized option: " + arg);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment