static void telopt(byte c) { switch (c) { case TELOPT_ECHO: to_echo(); break; case TELOPT_SGA: to_sga(); break; #if ENABLE_FEATURE_TELNET_TTYPE case TELOPT_TTYPE: to_ttype(); break; #endif #if ENABLE_FEATURE_TELNET_AUTOLOGIN case TELOPT_NEW_ENVIRON: to_new_environ(); break; #endif #if ENABLE_FEATURE_AUTOWIDTH case TELOPT_NAWS: to_naws(); putiac_naws(c, G.win_width, G.win_height); break; #endif default: to_notsup(c); break; } }
static void telopt(byte c) { switch (c) { case TELOPT_ECHO: to_echo(); break; case TELOPT_SGA: to_sga(); break; #ifdef BB_FEATURE_TELNET_TTYPE case TELOPT_TTYPE: to_ttype(); break; #endif #ifdef BB_FEATURE_AUTOWIDTH case TELOPT_NAWS: to_naws(); putiac_naws(c, win_width, win_height); break; #endif default: to_notsup(c); break; } }