ret = ssh_sftp_do_select(TRUE);
ret = ssh_sftp_do_select(TRUE, no_fds_ok);
char *ssh_sftp_get_cmdline(char *prompt){    char *buf;    int buflen, bufsize, ret;    fputs(prompt, stdout);    fflush(stdout);    buf = NULL;    buflen = bufsize = 0;    while (1) {	ret = ssh_sftp_do_select(TRUE);	if (ret < 0) {	    printf("connection died\n");	    return NULL;	       /* woop woop */	}	if (ret > 0) {	    if (buflen >= bufsize) {		bufsize = buflen + 512;		buf = sresize(buf, bufsize, char);	    }	    ret = read(0, buf+buflen, 1);	    if (ret < 0) {		perror("read");		return NULL;	    }	    if (ret == 0) {		/* eof on stdin; no error, but no answer either */		return NULL;	    }	    if (buf[buflen++] == '\n') {		/* we have a full line */		return buf;	    }	}    }}