- nr = handle:rxcnt()
- nr = handle:txcnt()
SYNOPSIS
DESCRIPTION
Return the number of characters in the receive buffer (rawio:rxcnt()) or transmit buffer
(rawio:txcnt()).
RETURN VALUE
On success, returns the buffer count. On failure, returns nil. In case of an error, the
error can be retrieved using rawio:lastError().
ERRORS
This function works only on TTY devices.
SEE ALSO
rawio:break, rawio:cts, rawio:dcd, rawio:device, rawio:drain, rawio:dsr, rawio:dtr, rawio:fd, rawio:flush, rawio:name, rawio:rng, rawio:rts, rawio:setDtr, rawio:setRts, rawio:setupComm, rawio:start, rawio:stop