sk_write(s, b, 9);
telnet_bufsize = sk_write(s, b, 9);
static void telnet_size(void){    unsigned char b[16];    char logbuf[50];    if (s == NULL || o_naws.state != ACTIVE)	return;    b[0] = IAC;    b[1] = SB;    b[2] = TELOPT_NAWS;    b[3] = cols >> 8;    b[4] = cols & 0xFF;    b[5] = rows >> 8;    b[6] = rows & 0xFF;    b[7] = IAC;    b[8] = SE;    sk_write(s, b, 9);    sprintf(logbuf, "client:\tSB NAWS %d,%d",	    ((unsigned char) b[3] << 8) + (unsigned char) b[4],	    ((unsigned char) b[5] << 8) + (unsigned char) b[6]);    logevent(logbuf);}