Yet more ANSI-BBS related updates

This commit is contained in:
Bryan Ashby 2020-05-21 21:22:15 -06:00
parent 1e6c577cd3
commit 2a93de9487
No known key found for this signature in database
GPG Key ID: B49EB437951D2542
1 changed files with 7 additions and 3 deletions

View File

@ -56,11 +56,14 @@ class TelnetClient {
this.socket.on('DO', command => { this.socket.on('DO', command => {
switch (command.option) { switch (command.option) {
// We've already stated we WILL do the following via
// the banner - some terminals will ask over and over
// if we respond to a DO with a WILL, so just don't
// do anything...
case Options.SGA : case Options.SGA :
return this.socket.will.sga(); case Options.ECHO :
case Options.TRANSMIT_BINARY : case Options.TRANSMIT_BINARY :
return this.socket.will.transmit_binary(); break;
default : default :
return this.socket.command(Commands.WONT, command.option); return this.socket.command(Commands.WONT, command.option);
@ -199,6 +202,7 @@ class TelnetClient {
} }
banner() { banner() {
this.socket.do.echo();
this.socket.will.echo(); // we'll echo back this.socket.will.echo(); // we'll echo back
this.socket.will.sga(); this.socket.will.sga();