tv.tv_usec = 0;
retval = select(1, &rfds, NULL, NULL, &tv);
tv.tv_usec = 0;
retval = select(1, &rfds, NULL, NULL, &tv);
/* If there's data from the keyboard... */
if (FD_ISSET(0, &rfds)) {
ch = scr_getc(SCR_BLOCK);
/* If there's data from the keyboard... */
if (FD_ISSET(0, &rfds)) {
ch = scr_getc(SCR_BLOCK);