mirror of
https://github.com/open-simh/simh.git
synced 2026-01-13 15:27:46 +00:00
SCP: Fix buffered console implementation to correctly retain buffering attributes across independent SET CONSOLE commands
This commit is contained in:
parent
746e5ab88c
commit
f6eb4bc4f5
@ -2275,12 +2275,13 @@ while (*tptr) {
|
||||
}
|
||||
}
|
||||
}
|
||||
mp->buffered = atoi(buffered);
|
||||
for (i = 0; i < mp->lines; i++) { /* initialize line buffers */
|
||||
lp = mp->ldsc + i;
|
||||
if (buffered[0]) {
|
||||
lp->txbsz = atoi(buffered);
|
||||
if (mp->buffered) {
|
||||
lp->txbsz = mp->buffered;
|
||||
lp->txbfd = 1;
|
||||
lp->rxbsz = atoi(buffered);
|
||||
lp->rxbsz = mp->buffered;
|
||||
}
|
||||
else {
|
||||
lp->txbsz = TMXR_MAXBUF;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user