From 50ee79734ab65d56361730bbe6c3f0eeef35cc91 Mon Sep 17 00:00:00 2001 From: Mark Pizzolato Date: Mon, 15 May 2017 21:00:35 -0700 Subject: [PATCH] IBM1130: Force update of GUI prior to reading commands This gets changed state displayed in GUI for register updates, etc.. as mentioned in #453 point 1. --- Ibm1130/ibm1130_gui.c | 1 + 1 file changed, 1 insertion(+) diff --git a/Ibm1130/ibm1130_gui.c b/Ibm1130/ibm1130_gui.c index 99a02412..4b93c653 100644 --- a/Ibm1130/ibm1130_gui.c +++ b/Ibm1130/ibm1130_gui.c @@ -1609,6 +1609,7 @@ char *read_cmdline (char *ptr, int size, FILE *stream) atexit(read_atexit); } + update_gui(TRUE); SetEvent(hCmdReadEvent); /* let read thread get one line */ WaitForSingleObject(hCmdReadyEvent, INFINITE); /* wait for read thread or GUI to respond */ strncpy(ptr, cmdbuffer, MIN(size, sizeof(cmdbuffer))); /* copy line to caller's buffer */