From 0b7a532acfb18c936c6fcf39dbd4eef05dbf9414 Mon Sep 17 00:00:00 2001 From: Ove Kaaven Date: Sun, 30 Jan 2000 02:54:14 +0000 Subject: [PATCH] Made int9 handler add keystroke to BIOS keyboard buffer. --- msdos/int09.c | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/msdos/int09.c b/msdos/int09.c index 3852ae6f438..380564ce893 100644 --- a/msdos/int09.c +++ b/msdos/int09.c @@ -26,13 +26,18 @@ void WINAPI INT_Int09Handler( CONTEXT86 *context ) BYTE scan = INT_Int09ReadScan(); UINT vkey = MapVirtualKeyA(scan&0x7f, 1); BYTE ch[2]; - int cnt; + int cnt, c2; if (!(scan & 0x80)) { /* as in TranslateMessage, windows/input.c */ - cnt = ToAscii(vkey, scan&0x7f, QueueKeyStateTable, (LPWORD)ch, 0); - if (cnt==1) { - FIXME("enter character %c into console input, not implemented\n",ch[0]); + cnt = ToAscii(vkey, scan, QueueKeyStateTable, (LPWORD)ch, 0); + if (cnt>0) { + for (c2=0; c2