Move elfXX_r_info/elfXX_r_sym to elfcode.h.
[deliverable/binutils-gdb.git] / readline / input.c
index 0ec507ec27c5c9aaef808a361d521eec2d7a8031..9f8905384d27115c96ece91fe38a806774c4741f 100644 (file)
@@ -220,6 +220,16 @@ rl_gather_tyi ()
     }
 #endif /* O_NDELAY */
 
+#if defined (__MINGW32__)
+  /* We use getch to read console input, so use the same
+     mechanism to check for more.  Otherwise, we don't know.  */
+  if (isatty (fileno (rl_instream)))
+    chars_avail = _kbhit ();
+  else
+    chars_avail = 0;
+  result = 0;
+#endif
+
   /* If there's nothing available, don't waste time trying to read
      something. */
   if (chars_avail <= 0)
@@ -303,6 +313,13 @@ _rl_input_available ()
     return (chars_avail);
 #endif
 
+#endif
+
+#if defined (__MINGW32__)
+  /* We use getch to read console input, so use the same
+     mechanism to check for more.  Otherwise, we don't know.  */
+  if (isatty (fileno (rl_instream)))
+    return _kbhit ();
 #endif
 
   return 0;
This page took 0.022395 seconds and 4 git commands to generate.