1
0
mirror of https://github.com/PDP-10/klh10.git synced 2026-04-16 00:21:30 +00:00

Make console input more solid.

This commit is contained in:
Lars Brinkhoff
2017-10-26 12:38:52 +02:00
committed by Eric Swenson
parent 6f268f9be7
commit e0a65234a6

View File

@@ -182,15 +182,15 @@ cty_sin(int cnt)
register vmptr_t vp;
register int ch, oldch;
if ((ch = fe_ctyin()) < 0) /* Get single char */
return 0; /* None left */
vp = vm_physmap(FECOM_CTYIN);
oldch = vm_pgetrh(vp); /* See if ready for next char */
if (oldch & 0400)
fprintf(stderr, "[CTYI: %o => %o, old %o]",
ch, ch | 0400, oldch);
else if (cpu.fe.fe_ctydebug)
return cnt;
if ((ch = fe_ctyin()) < 0) /* Get single char */
return 0; /* None left */
if (cpu.fe.fe_ctydebug)
fprintf(stderr, "[CTYI: %o]", ch);
/* Drop char in FE communication area */