changeset 8194:b11f71df59d9

(dos_rawgetc): Use bios, not kbhit ().
author Richard M. Stallman <rms@gnu.org>
date Mon, 11 Jul 1994 00:59:17 +0000
parents 0be48d0d16fd
children a4f0f421752e
files src/msdos.c
diffstat 1 files changed, 5 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/msdos.c	Mon Jul 11 00:55:56 1994 +0000
+++ b/src/msdos.c	Mon Jul 11 00:59:17 1994 +0000
@@ -265,7 +265,11 @@
      characters like { and } if their positions are overlaid.  */
   alt_p = ((extended_kbd ? (regs.h.ah & 2) : (regs.h.al & 8)) != 0);
 
-  while (kbhit ())
+  /* The following condition is equivalent to `kbhit ()', except that
+     it uses the bios to do its job.  This pleases DESQview/X.  */
+  while ((regs.h.ah = extended_kbd ? 0x11 : 0x01),
+	 int86 (0x16, &regs, &regs),
+	 (regs.x.flags & 0x40) == 0)
     {
       union REGS regs;
       register unsigned char c;