From 31b7cfbb73c4894c889b203b04864182266f73ec Mon Sep 17 00:00:00 2001 From: y4my4my4m <8145020+y4my4my4m@users.noreply.github.com> Date: Tue, 9 May 2023 23:54:25 +0900 Subject: [PATCH] dont send any negotiation for now --- src/Home/Telnet/Telnet.ZC | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/Home/Telnet/Telnet.ZC b/src/Home/Telnet/Telnet.ZC index 8e1a0238..b75be2b0 100755 --- a/src/Home/Telnet/Telnet.ZC +++ b/src/Home/Telnet/Telnet.ZC @@ -299,7 +299,7 @@ U0 Telnet(U8 *host, U16 port=TELNET_PORT) { response[2] = option_code; response[3] = '\0'; - TCPSocketSendString(sock, response); + // TCPSocketSendString(sock, response); // the bugged out SendTerminalType and SendWindowsSize was what crashed the BBS... // if (option_code == TERMINAL_TYPE) SendTerminalType(sock, "ANSI-BBS"); // else if (option_code == NAWS) SendWindowSize(sock, 25, 80); @@ -353,7 +353,8 @@ U0 Telnet(U8 *host, U16 port=TELNET_PORT) { color_code = ansi_code - 30; // Set foreground color } else if (ansi_code >= 40 && ansi_code <= 47) { color_code = ansi_code - 40; // Set background color - } else { + } + else { switch (ansi_code) { case 0: "$$BG$$$$FG$$"; break; // reset // case 1: ""; break; // TODO: bold