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
1 changed files with 1 additions and 0 deletions
|
@ -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…
Add table
Reference in a new issue