pub fn stdin_has_input() -> boolExpand description
Whether this process’s stdin holds input a command would not get: a pipe
or socket with bytes waiting (after up to 50ms for a writer that is still
starting, as in printf x | isb exec ...), or a file with bytes left.
Terminals and devices (/dev/null) never count. Nothing is read.