Skip to content
Snippets Groups Projects
Commit ad3236e3 authored by Deucе's avatar Deucе :ok_hand_tone4:
Browse files

Set initial telnet modes in telnets

Not sure how I missed this one.
parent 51713c8e
No related branches found
No related tags found
No related merge requests found
Pipeline #7828 passed
...@@ -12,6 +12,7 @@ ...@@ -12,6 +12,7 @@
#include "sockwrap.h" #include "sockwrap.h"
#include "ssh.h" #include "ssh.h"
#include "syncterm.h" #include "syncterm.h"
#include "telnet_io.h"
#include "threadwrap.h" #include "threadwrap.h"
#include "uifcinit.h" #include "uifcinit.h"
#include "window.h" #include "window.h"
...@@ -245,6 +246,17 @@ telnets_connect(struct bbslist *bbs) ...@@ -245,6 +246,17 @@ telnets_connect(struct bbslist *bbs)
if (!bbs->hidepopups) if (!bbs->hidepopups)
uifc.pop(NULL); // TODO: Why is this called twice? uifc.pop(NULL); // TODO: Why is this called twice?
// Suppress Go Aheads (both directions)
request_telnet_opt(TELNET_WILL, TELNET_SUP_GA);
request_telnet_opt(TELNET_DO, TELNET_SUP_GA);
if (!bbs->telnet_no_binary) {
// Enable binary mode (both directions)
request_telnet_opt(TELNET_WILL, TELNET_BINARY_TX);
request_telnet_opt(TELNET_DO, TELNET_BINARY_TX);
}
// Request that the server echos
request_telnet_opt(TELNET_DO, TELNET_ECHO);
return 0; return 0;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment