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