terminaltypeok
int terminaltypeok (char *s);
if (his_state_is_will(TELOPT_TTYPE) && !terminaltypeok(terminaltype)) {
if (terminaltypeok(terminaltype))