X-Git-Url: https://ncurses.scripts.mit.edu/?p=ncurses.git;a=blobdiff_plain;f=test%2Fncurses.c;h=c9367296ace95f6ea3be339a00aa3f44ae2803fa;hp=9c7516896cf1b0e4fa476bec8e47620068e9ebb3;hb=b73ae15cdc71aecdfd306f85bd3c37f9fd5024f4;hpb=093902b4199bbc1d9afec433759e48344c06ed1a diff --git a/test/ncurses.c b/test/ncurses.c index 9c751689..c9367296 100644 --- a/test/ncurses.c +++ b/test/ncurses.c @@ -40,7 +40,7 @@ AUTHOR Author: Eric S. Raymond 1993 Thomas E. Dickey (beginning revision 1.27 in 1996). -$Id: ncurses.c,v 1.507 2018/06/23 21:35:06 tom Exp $ +$Id: ncurses.c,v 1.508 2018/09/22 21:21:43 tom Exp $ ***************************************************************************/ @@ -7775,6 +7775,10 @@ main_menu(bool top) if (read(fileno(stdin), &ch, (size_t) 1) <= 0) { if (command == 0) command = 'q'; + if (errno == EINTR) { + clearerr(stdin); + continue; + } break; } else if (command == 0 && !isspace(UChar(ch))) { command = ch;