mirror of
https://github.com/Zeal-Operating-System/ZealOS.git
synced 2024-12-25 15:10:28 +00:00
dont send any negotiation for now
This commit is contained in:
parent
3f901db8b8
commit
31b7cfbb73
1 changed files with 3 additions and 2 deletions
|
@ -299,7 +299,7 @@ U0 Telnet(U8 *host, U16 port=TELNET_PORT) {
|
||||||
|
|
||||||
response[2] = option_code;
|
response[2] = option_code;
|
||||||
response[3] = '\0';
|
response[3] = '\0';
|
||||||
TCPSocketSendString(sock, response);
|
// TCPSocketSendString(sock, response);
|
||||||
// the bugged out SendTerminalType and SendWindowsSize was what crashed the BBS...
|
// the bugged out SendTerminalType and SendWindowsSize was what crashed the BBS...
|
||||||
// if (option_code == TERMINAL_TYPE) SendTerminalType(sock, "ANSI-BBS");
|
// if (option_code == TERMINAL_TYPE) SendTerminalType(sock, "ANSI-BBS");
|
||||||
// else if (option_code == NAWS) SendWindowSize(sock, 25, 80);
|
// 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
|
color_code = ansi_code - 30; // Set foreground color
|
||||||
} else if (ansi_code >= 40 && ansi_code <= 47) {
|
} else if (ansi_code >= 40 && ansi_code <= 47) {
|
||||||
color_code = ansi_code - 40; // Set background color
|
color_code = ansi_code - 40; // Set background color
|
||||||
} else {
|
}
|
||||||
|
else {
|
||||||
switch (ansi_code) {
|
switch (ansi_code) {
|
||||||
case 0: "$$BG$$$$FG$$"; break; // reset
|
case 0: "$$BG$$$$FG$$"; break; // reset
|
||||||
// case 1: ""; break; // TODO: bold
|
// case 1: ""; break; // TODO: bold
|
||||||
|
|
Loading…
Reference in a new issue