SCP: Changed sim_poll_kbd() to set the global stop_cpu when the WRU character has been received.

Thus behaving consistently with platforms which learn about the WRU character by the delivery of a SIGINT.
This commit is contained in:
Mark Pizzolato 2015-01-01 17:05:41 -08:00 committed by Leo Broukhis
parent d615bd0f58
commit 8659281aaf

View file

@ -1769,9 +1769,12 @@ if (sim_send_poll_data (&sim_con_send, &c)) /* injected input charac
return c; return c;
if (!sim_rem_master_mode) { if (!sim_rem_master_mode) {
c = sim_os_poll_kbd (); /* get character */ c = sim_os_poll_kbd (); /* get character */
if ((c == SCPE_STOP) || /* ^E or not Telnet? */ if (c == SCPE_STOP) { /* ^E */
((sim_con_tmxr.master == 0) && /* and not serial? */ stop_cpu = 1; /* Force a stop (which is picked up by sim_process_event */
(sim_con_ldsc.serport == 0))) return SCPE_OK;
}
if ((sim_con_tmxr.master == 0) && /* not Telnet? */
(sim_con_ldsc.serport == 0)) /* and not serial? */
return c; /* in-window */ return c; /* in-window */
if (!sim_con_ldsc.conn) { /* no telnet or serial connection? */ if (!sim_con_ldsc.conn) { /* no telnet or serial connection? */
if (!sim_con_ldsc.txbfd) /* unbuffered? */ if (!sim_con_ldsc.txbfd) /* unbuffered? */