mirror of
https://github.com/open-simh/simh.git
synced 2026-01-13 15:27:46 +00:00
PDP10: Avoid console port input overrun - wait until prior input is processed
This will allow cut-and-paste into KS10 simulator console session. As discussed in #999
This commit is contained in:
parent
0507aa15fc
commit
d5cc3406b6
@ -191,8 +191,12 @@ t_stat fei_svc (UNIT *uptr)
|
||||
{
|
||||
int32 temp;
|
||||
|
||||
temp = sim_poll_kbd (); /* get possible char or error? */
|
||||
sim_clock_coschedule (uptr, tmxr_poll); /* continue poll */
|
||||
|
||||
if (M[FE_CTYIN] & FE_CVALID) /* previous character still pending? */
|
||||
return SCPE_OK; /* wait until it gets digested */
|
||||
|
||||
temp = sim_poll_kbd (); /* get possible char or error? */
|
||||
if (temp < SCPE_KFLAG) /* no char or error? */
|
||||
return temp;
|
||||
if (temp & SCPE_BREAK) /* ignore break */
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user