From 2f662f205368bbba6154dfdc68a9bed0ed8d11d4 Mon Sep 17 00:00:00 2001 From: Mark Pizzolato Date: Thu, 5 Feb 2015 06:36:13 -0800 Subject: [PATCH] SCP: Make sure that WRU is detected by console read processing in the event that it isn't detected by SIGINT --- sim_console.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/sim_console.c b/sim_console.c index 4688190a..63ae1d22 100644 --- a/sim_console.c +++ b/sim_console.c @@ -2793,7 +2793,9 @@ status = read (0, buf, 1); if (status != 1) return SCPE_OK; if (sim_brk_char && (buf[0] == sim_brk_char)) return SCPE_BREAK; -else return (buf[0] | SCPE_KFLAG); +if (sim_int_char && (buf[0] == sim_int_char)) + return SCPE_STOP; +return (buf[0] | SCPE_KFLAG); } static t_bool sim_os_poll_kbd_ready (int ms_timeout) @@ -2921,7 +2923,9 @@ status = read (0, buf, 1); if (status != 1) return SCPE_OK; if (sim_brk_char && (buf[0] == sim_brk_char)) return SCPE_BREAK; -else return (buf[0] | SCPE_KFLAG); +if (sim_int_char && (buf[0] == sim_int_char)) + return SCPE_STOP; +return (buf[0] | SCPE_KFLAG); } static t_bool sim_os_poll_kbd_ready (int ms_timeout)