gui: Only check STDIN for readability if curses is active.
[paraslash.git] / gui.c
diff --git a/gui.c b/gui.c
index 9b1c739..fff5741 100644 (file)
--- a/gui.c
+++ b/gui.c
@@ -895,7 +895,8 @@ repeat:
                FD_SET(command_pipe, &rfds);
                max_fileno = MAX(max_fileno, command_pipe);
        }
-       FD_SET(STDIN_FILENO, &rfds);
+       if (curses_active)
+               FD_SET(STDIN_FILENO, &rfds);
        ret = select(max_fileno + 1, &rfds, NULL, NULL, &tv);
 //     PARA_DEBUG_LOG("select returned %d\n", ret);