Fix bug: when running something in a REPL buffer, Edwin would
authorChris Hanson <org/chris-hanson/cph>
Tue, 23 Feb 1999 06:13:14 +0000 (06:13 +0000)
committerChris Hanson <org/chris-hanson/cph>
Tue, 23 Feb 1999 06:13:14 +0000 (06:13 +0000)
completely ignore all input.  It turned out that the "select"
mechanism was only looking at events for the console window, and not
for other windows, so it was blocking indefinitely.

v7/src/microcode/prntio.c

index 6830709712f6fe7c0cf2bbb78d8712b2e4827d38..9909db50eab4c128605f44ac7a3bb5aac7714661 100644 (file)
@@ -1,6 +1,6 @@
 /* -*-C-*-
 
-$Id: prntio.c,v 1.10 1999/01/02 06:11:34 cph Exp $
+$Id: prntio.c,v 1.11 1999/02/23 06:13:14 cph Exp $
 
 Copyright (c) 1993-1999 Massachusetts Institute of Technology
 
@@ -141,7 +141,7 @@ wait_for_multiple_objects_1 (unsigned long n_channels, Tchannel * channels,
          if (pending_interrupts_p ())
            return (-2);
        }
-      else if (Screen_PeekEvent (master_tty_window, 0))
+      else if (Screen_pending_events_p ())
        return (console_index);
       else
        {