gui: Only check STDIN for readability if curses is active.
authorAndre <maan@p133.(none)>
Thu, 23 Mar 2006 13:57:52 +0000 (14:57 +0100)
committerAndre <maan@p133.(none)>
Thu, 23 Mar 2006 13:57:52 +0000 (14:57 +0100)
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);