From cb8329d87ab352a3e8b7f6932bb7f645dd3fa9fc Mon Sep 17 00:00:00 2001 From: Robert Pengelly Date: Sun, 25 Oct 2026 17:16:57 +0000 Subject: [PATCH] Refresh video before blocking keyboard input --- interrupts.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/interrupts.c b/interrupts.c index e1214cb..7c34fe3 100644 --- a/interrupts.c +++ b/interrupts.c @@ -2019,10 +2019,7 @@ static int host_key_available_from (FILE *source) { static int host_read_key (CPU8086 *cpu) { FILE *source; - -#if defined (_WIN32) bios_video_refresh (cpu); -#endif source = dos_get_handle_file (cpu, 0); return host_read_key_from (source ? source : stdin); @@ -2045,11 +2042,11 @@ static int bios_read_key (CPU8086 *cpu, int wait) { } -#if defined (_WIN32) if (wait) { bios_video_refresh (cpu); } +#if defined (_WIN32) ch = host_windows_console_key (stdout, wait); mem_write8 (cpu->mem, cpu->mem_size, get_phys (0x0040, 0x0017), host_windows_shift_flags); #else -- 2.34.1