From: Richard M. Stallman Date: Mon, 11 Jul 1994 00:59:17 +0000 (+0000) Subject: (dos_rawgetc): Use bios, not kbhit (). X-Git-Tag: emacs-19.34~7659 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=3ec5651bc0d3f92927b1ecf58707d0d0b1e7fe28;p=emacs.git (dos_rawgetc): Use bios, not kbhit (). --- diff --git a/src/msdos.c b/src/msdos.c index 3ef68d0ccc9..6c72853143a 100644 --- a/src/msdos.c +++ b/src/msdos.c @@ -265,7 +265,11 @@ dos_rawgetc () 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, ®s, ®s), + (regs.x.flags & 0x40) == 0) { union REGS regs; register unsigned char c;