Closed Oldes closed 2 months ago
% echo 123 | rebol3 --do "probe query system/ports/input 'length"
4
% echo 1 | rebol3 --do "probe query system/ports/input 'length"
2
(echo
appends LF)
It should be noted, that it counts only bytes directly available, so it may return zero even when there will be data received later!
Trying to read
system/ports/input
(akastdin
) may be a blocking operation in case there are no data.