mirror of
https://github.com/open-simh/simh.git
synced 2026-01-13 23:37:13 +00:00
enhanced the relatively new tmxr_linemsgf api to dynamically flush a completely full transmit buffer as needed.
This commit is contained in:
parent
d86680013b
commit
3448edf608
10
sim_tmxr.c
10
sim_tmxr.c
@ -3104,11 +3104,13 @@ while (1) { /* format passed string, arg
|
||||
|
||||
for (i = 0; i < len; ++i) {
|
||||
if ('\n' == buf[i]) {
|
||||
tmxr_putc_ln (lp, '\r');
|
||||
tmxr_putc_ln (lp, buf[i]);
|
||||
while (SCPE_STALL == tmxr_putc_ln (lp, '\r'))
|
||||
if (lp->txbsz == tmxr_send_buffered_data (lp))
|
||||
sim_os_ms_sleep (10);
|
||||
}
|
||||
else
|
||||
tmxr_putc_ln (lp, buf[i]);
|
||||
while (SCPE_STALL == tmxr_putc_ln (lp, buf[i]))
|
||||
if (lp->txbsz == tmxr_send_buffered_data (lp))
|
||||
sim_os_ms_sleep (10);
|
||||
}
|
||||
if (buf != stackbuf)
|
||||
free (buf);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user