mirror of
https://github.com/NuSkooler/enigma-bbs.git
synced 2025-07-29 05:56:08 +02:00
Yet more ANSI-BBS related updates
This commit is contained in:
parent
1e6c577cd3
commit
2a93de9487
1 changed files with 7 additions and 3 deletions
|
@ -56,11 +56,14 @@ class TelnetClient {
|
|||
|
||||
this.socket.on('DO', command => {
|
||||
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 :
|
||||
return this.socket.will.sga();
|
||||
|
||||
case Options.ECHO :
|
||||
case Options.TRANSMIT_BINARY :
|
||||
return this.socket.will.transmit_binary();
|
||||
break;
|
||||
|
||||
default :
|
||||
return this.socket.command(Commands.WONT, command.option);
|
||||
|
@ -199,6 +202,7 @@ class TelnetClient {
|
|||
}
|
||||
|
||||
banner() {
|
||||
this.socket.do.echo();
|
||||
this.socket.will.echo(); // we'll echo back
|
||||
|
||||
this.socket.will.sga();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue