((unsigned char) b[3] << 8) + (unsigned char) b[4], ((unsigned char) b[5] << 8) + (unsigned char) b[6]);
telnet->term_width, telnet->term_height);
static void telnet_size(void *handle, int width, int height){    Telnet telnet = (Telnet) handle;    unsigned char b[16];    char *logbuf;    telnet->term_width = width;    telnet->term_height = height;    if (telnet->s == NULL || telnet->opt_states[o_naws.index] != ACTIVE)	return;    b[0] = IAC;    b[1] = SB;    b[2] = TELOPT_NAWS;    b[3] = telnet->term_width >> 8;    b[4] = telnet->term_width & 0xFF;    b[5] = telnet->term_height >> 8;    b[6] = telnet->term_height & 0xFF;    b[7] = IAC;    b[8] = SE;    telnet->bufsize = sk_write(telnet->s, b, 9);    logbuf = dupprintf("client:\tSB NAWS %d,%d",		       ((unsigned char) b[3] << 8) + (unsigned char) b[4],		       ((unsigned char) b[5] << 8) + (unsigned char) b[6]);    logevent(telnet->frontend, logbuf);    sfree(logbuf);}