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.
This commit is contained in:
Mark Pizzolato 2017-05-15 21:00:35 -07:00
parent 6c39b3a263
commit 50ee79734a

View file

@ -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 */