diff --git a/include/wstelnet.js b/include/wstelnet.js index 8e64d51..fca45f3 100644 --- a/include/wstelnet.js +++ b/include/wstelnet.js @@ -86,6 +86,8 @@ function do_recv() { case 251: // WILL Util.Debug("Got Cmd WILL '" + value + "'"); if (value === 1) { + // Server will echo, turn off local echo + vt100.noecho(); // Affirm echo with DO Util.Info("Send Cmd DO '" + value + "' (echo)"); sQ.push(255, 253, value); @@ -206,9 +208,6 @@ function constructor() { vt100 = new VT100(80, 24, target); - // Turn off local echo - vt100.noecho(); - /* * Override VT100 I/O routines diff --git a/wstelnet.html b/wstelnet.html index 9f12a05..5c2464b 100644 --- a/wstelnet.html +++ b/wstelnet.html @@ -1,7 +1,7 @@ - WebSockets Telnet + Telnet client using WebSockets