I run a new process in ruby-code (ruby program) and how can I check if
process is waiting a user input?
In C# I can do like this:
foreach(ProcessThread thread in process.Threads)
if (thread.ThreadState == ThreadState.Wait
&& thread.WaitReason == ThreadWaitReason.UserRequest)