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:
Mark Pizzolato 2021-01-21 07:56:59 -08:00
parent 0507aa15fc
commit d5cc3406b6

View file

@ -191,8 +191,12 @@ t_stat fei_svc (UNIT *uptr)
{ {
int32 temp; int32 temp;
temp = sim_poll_kbd (); /* get possible char or error? */
sim_clock_coschedule (uptr, tmxr_poll); /* continue poll */ 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? */ if (temp < SCPE_KFLAG) /* no char or error? */
return temp; return temp;
if (temp & SCPE_BREAK) /* ignore break */ if (temp & SCPE_BREAK) /* ignore break */