diff --git a/src/core/connect.c b/src/core/connect.c index c875b49..cbed4a4 100644 --- a/src/core/connect.c +++ b/src/core/connect.c @@ -130,7 +130,15 @@ set_ssl_state(hSession,LIB3270_SSL_UNDEFINED); - snprintf(hSession->full_model_name,LIB3270_FULL_MODEL_NAME_LENGTH,"IBM-327%c-%d",hSession->m3279 ? '9' : '8', hSession->model_num); + snprintf( + hSession->full_model_name, + LIB3270_FULL_MODEL_NAME_LENGTH, + "IBM-327%c-%d%s", + hSession->m3279 ? '9' : '8', + hSession->model_num, + hSession->extended ? "-E" : "" + ); + lib3270_write_event_trace(hSession,"Reconnecting to %s\n",lib3270_get_url(hSession)); hSession->ever_3270 = False; @@ -167,7 +175,9 @@ non_blocking(hSession,False); #pragma GCC diagnostic push +#ifdef _WIN32 #pragma GCC diagnostic ignored "-Wcast-function-type" +#endif // _WIN32 int rc = lib3270_run_task( hSession, (int(*)(H3270 *h, void *)) hSession->network.module->start_tls, diff --git a/src/core/telnet.c b/src/core/telnet.c index 22f8362..d4d8806 100644 --- a/src/core/telnet.c +++ b/src/core/telnet.c @@ -1006,6 +1006,12 @@ static int telnet_fsm(H3270 *hSession, unsigned char c) IAC, SE); net_rawout(hSession, (unsigned char *)tt_out, tb_len); + debug("\n\n\ntermtype=%s lu.try=[%s] - [%s]\n\n\n", + hSession->termtype, + (hSession->lu.try != CN && *hSession->lu.try) ? "@" : "", + (hSession->lu.try != CN && *hSession->lu.try) ? hSession->lu.try : "" + ); + trace_dsn(hSession,"SENT %s %s %s %.*s %s\n", cmd(SB), opt(TELOPT_TTYPE), telquals[TELQUAL_IS], -- libgit2 0.21.2