mirror of
https://github.com/simh/simh.git
synced 2026-01-28 20:51:20 +00:00
TMXR: Describe TMXR API a little better
This commit is contained in:
17
sim_tmxr.c
17
sim_tmxr.c
@@ -1749,7 +1749,8 @@ return r;
|
||||
Inputs:
|
||||
*lp = pointer to terminal line descriptor
|
||||
Output:
|
||||
valid + char, 0 if line
|
||||
(TMXR_VALID | char) or 0 if no data is currently available
|
||||
on the specified line.
|
||||
|
||||
Implementation note:
|
||||
|
||||
@@ -1758,11 +1759,6 @@ return r;
|
||||
SCPE_BREAK is ORed into the return value.
|
||||
*/
|
||||
|
||||
int32 tmxr_input_pending_ln (TMLN *lp)
|
||||
{
|
||||
return (lp->rxbpi - lp->rxbpr);
|
||||
}
|
||||
|
||||
int32 tmxr_getc_ln (TMLN *lp)
|
||||
{
|
||||
int32 j;
|
||||
@@ -2111,8 +2107,6 @@ for (i = 0; i < mp->lines; i++) { /* loop thru lines */
|
||||
}
|
||||
|
||||
|
||||
/* Return count of available characters for line */
|
||||
|
||||
int32 tmxr_rqln_bare (const TMLN *lp, t_bool speed)
|
||||
{
|
||||
if (speed) {
|
||||
@@ -2132,11 +2126,18 @@ if (speed) {
|
||||
return (lp->rxbpi - lp->rxbpr + ((lp->rxbpi < lp->rxbpr)? lp->rxbsz: 0));
|
||||
}
|
||||
|
||||
/* Return count of available characters ready to be read for line */
|
||||
|
||||
int32 tmxr_rqln (const TMLN *lp)
|
||||
{
|
||||
return tmxr_rqln_bare (lp, TRUE);
|
||||
}
|
||||
|
||||
int32 tmxr_input_pending_ln (TMLN *lp)
|
||||
{
|
||||
return (lp->rxbpi - lp->rxbpr);
|
||||
}
|
||||
|
||||
|
||||
/* Store character in line buffer
|
||||
|
||||
|
||||
Reference in New Issue
Block a user