mirror of
https://github.com/simh/simh.git
synced 2026-02-26 16:54:22 +00:00
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:
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user