Mercurial > emacs
diff src/msdos.c @ 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 | d35fd7fd0ef8 |
| children | d48c2b01fba5 |
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, ®s, ®s), + (regs.x.flags & 0x40) == 0) { union REGS regs; register unsigned char c;
