X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=gui.c;h=fff5741dca26c6a472cd67b2fdd7d638131fe3b6;hp=1e6739a21ed10eae1270c755ac290b926b1098bc;hb=821c67c164f932a189927f62b3ddcf2ee95b455a;hpb=38389139df0d6fd5a2c3c6845f7c2142521c3885 diff --git a/gui.c b/gui.c index 1e6739a2..fff5741d 100644 --- a/gui.c +++ b/gui.c @@ -20,7 +20,6 @@ #include "gui.cmdline.h" #include "para.h" -#include "gcc-compat.h" #include #include "ringbuffer.h" #include "string.h" @@ -896,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); @@ -938,7 +938,7 @@ check_return: if (cp_numread <= 0 && !cbo) /* command complete */ return 0; if (cbo) - cbo = for_each_line(command_buf, cbo, &add_output_line, 0); + cbo = for_each_line(command_buf, cbo, &add_output_line); if (cp_numread <= 0) cbo = 0; wrefresh(bot.win);