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

Initialize Terminal in global sbbs when answering

Should fix issue where extra pauses occur on connection.
parent 0b011cc8
No related branches found
No related tags found
No related merge requests found
Pipeline #8850 failed
...@@ -5581,6 +5581,13 @@ NO_SSH: ...@@ -5581,6 +5581,13 @@ NO_SSH:
} }
} }
// Initialize term state
sbbs->autoterm = 0;
if (sbbs->term)
delete sbbs->term;
sbbs->term = new Terminal(sbbs);
sbbs->term->cols = startup->default_term_width;
sbbs->client_socket = client_socket; // required for output to the user sbbs->client_socket = client_socket; // required for output to the user
if (!ssh) if (!ssh)
sbbs->online = ON_REMOTE; sbbs->online = ON_REMOTE;
...@@ -5673,9 +5680,6 @@ NO_SSH: ...@@ -5673,9 +5680,6 @@ NO_SSH:
if (rlogin) if (rlogin)
sbbs->outcom(0); /* acknowledge RLogin per RFC 1282 */ sbbs->outcom(0); /* acknowledge RLogin per RFC 1282 */
sbbs->autoterm = 0;
sbbs->term->cols = startup->default_term_width;
sbbs->bprintf("\r\n%s\r\n", VERSION_NOTICE); sbbs->bprintf("\r\n%s\r\n", VERSION_NOTICE);
sbbs->bprintf("%s connection from: %s\r\n", client.protocol, host_ip); sbbs->bprintf("%s connection from: %s\r\n", client.protocol, host_ip);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment