Skip to main content

stdin_has_input

Function stdin_has_input 

Source
pub fn stdin_has_input() -> bool
Expand 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.