1
0
mirror of https://github.com/open-simh/simh.git synced 2026-01-27 12:42:45 +00:00
Files
open-simh.simh/Ibm1130
Mark Pizzolato b866f76af7 IBM1130: Cleanup GUI command interactions and shutdown activities
Cleaned up a couple of things here.  Specifically:
    1) scp_reading is only set when CmdThread is actually reading.
    2) Avoid calling ResetEvent(hCmdReadEvent) since it has no effect.
    3) Calling ReadFile directly rather than calling read_line which ultimately
         calls fgets(stdin) and that ultimately calls ReadFile.
    4) Added a cleanup mechanism to shutdown the CmdThread
         and related open handles to Events and Thread when the program exits.

Remaining potential problems:
    1) A user might have type a partial command (scp_reading) but not
        completed it by hitting Enter, and then they perform some GUI
        interaction which does other things.  Some strange output will be
        produced on top of the partially entered command line.
    2) Whether or not a complete command has been entered, the original
         CmdThread will have a read posted on stdin throughout any activity
         initiated by GUI activities.  It is not clear that the simulator’s console
         will coherently be able to change the console’s mode from the line
         oriented mode that SCP uses to the character oriented mode used
         while instructions are executing with read pending on the input side.
2017-05-07 18:56:48 -07:00
..
2017-05-03 15:11:22 -07:00
2011-04-15 08:34:20 -07:00
2011-04-15 08:34:20 -07:00
2011-04-15 08:34:20 -07:00
2011-04-15 08:34:20 -07:00
2011-04-15 08:34:20 -07:00
2011-04-15 08:34:20 -07:00
2011-04-15 08:34:20 -07:00
2014-10-27 17:14:28 -07:00
2014-10-27 17:14:28 -07:00
2011-04-15 08:33:43 -07:00
2017-05-03 15:11:22 -07:00
2017-05-03 15:11:22 -07:00
2017-05-03 15:11:22 -07:00
2017-05-03 15:11:22 -07:00
2017-05-03 15:11:22 -07:00
2017-05-03 15:11:22 -07:00
2017-05-03 15:11:22 -07:00
2017-05-03 15:11:22 -07:00
2017-05-03 15:11:22 -07:00
2017-05-03 15:11:22 -07:00
2017-05-03 15:11:22 -07:00
2017-05-03 15:11:22 -07:00
2011-04-15 08:34:20 -07:00