ldisc_send(paste_buffer + paste_pos, n);
luni_send(paste_buffer + paste_pos, n);
void term_paste(){    static long last_paste = 0;    long now, paste_diff;    if (paste_len == 0)	return;    /* Don't wait forever to paste */    if (paste_hold) {	now = GetTickCount();	paste_diff = now - last_paste;	if (paste_diff >= 0 && paste_diff < 450)	    return;    }    paste_hold = 0;    while (paste_pos < paste_len) {	int n = 0;	while (n + paste_pos < paste_len) {	    if (paste_buffer[paste_pos + n++] == '\r')		break;	}	ldisc_send(paste_buffer + paste_pos, n);	paste_pos += n;	if (paste_pos < paste_len) {	    paste_hold = 1;	    return;	}    }    sfree(paste_buffer);    paste_buffer = 0;    paste_len = 0;}