in reply to Checing presence of input on standard input in non-blocking way, sans user interaction

use the shift function to get standard input provided like that.

  • Comment on Re: Checing presence of input on standard input in non-blocking way, sans user interaction

Replies are listed 'Best First'.
Re^2: Checing presence of input on standard input in non-blocking way, sans user interaction
by marinersk (Priest) on Jul 17, 2013 at 15:37 UTC
    I am unaware of how shift can be used to indicate whether the user has typed something on the keyboard.

    I am also unaware of how shift can be used to determine if there is any data waiting to be read on STDIN from redirected input.

    Could you be so kind as to provide a working code example? That would be really cool information to have!

Re^2: Checing presence of input on standard input in non-blocking way, sans user interaction
by Anonymous Monk on Jul 17, 2013 at 14:41 UTC

    It's not standard input by the way, you have rerouted standard output in the other program.