From 3584af524b6e654a8475d5b619704a3a435a1f2e Mon Sep 17 00:00:00 2001 From: Eugene Pankov Date: Sun, 15 Aug 2021 22:31:40 +0200 Subject: [PATCH] telnet: added potentially missing WILL responses --- tabby-telnet/src/session.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tabby-telnet/src/session.ts b/tabby-telnet/src/session.ts index d44ad7ed..634d53a8 100644 --- a/tabby-telnet/src/session.ts +++ b/tabby-telnet/src/session.ts @@ -171,10 +171,12 @@ export class TelnetSession extends BaseSession { if (command === TelnetCommands.DO) { if (option === TelnetOptions.NEGO_WINDOW_SIZE) { this.emitSize() + this.emitTelnet(TelnetCommands.WILL, option) } else if (option === TelnetOptions.ECHO) { this.echoEnabled = true this.emitTelnet(TelnetCommands.WILL, option) } else if (option === TelnetOptions.TERMINAL_TYPE) { + this.emitTelnet(TelnetCommands.WILL, option) this.emitTelnetSuboption(option, Buffer.from([0, ...Buffer.from('XTERM-256COLOR')])) } else { this.logger.debug('(!) Unhandled option')