mirror of
https://github.com/open-simh/simh.git
synced 2026-01-15 08:04:00 +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:
parent
6c39b3a263
commit
50ee79734a
@ -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 */
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user