If the select_loop of para_gui runs in getch or command mode we
currently wait a full timeout period before checking for pending
input.
This patch adds stdin to the set of file descriptors monitored by
select so that a key press causes select() to return immediately.
if (command_fds[1] >= 0)
para_fd_set(command_fds[1], &rfds, &max_fileno);
}
+ if (mode == GETCH_MODE || mode == COMMAND_MODE)
+ para_fd_set(STDIN_FILENO, &rfds, &max_fileno);
ret = para_select(max_fileno + 1, &rfds, NULL, &tv);
if (ret <= 0)
goto check_return; /* skip fd checks */