title: Ruby - Calling commands and interact with shell in Windows environment
body: <p>I am running an .exe file in the command line from a Ruby script that asks the user for a Yes/No response. I would like to know how the user can interact with it in Windows environment.</p>
  
  <p>I have tried all the possible options: <code>system</code>, backticks, <code>%x()</code>, Open3, Open4... and none of them work.</p>
  
  <p>Some posts (<a href="https://stackoverflow.com/questions/10645173/run-system-command-in-ruby-and-interact-with-it">[1]</a>, <a href="https://stackoverflow.com/questions/31854180/ruby-interactive-shell-commands">[2]</a>) resolve the issue using PTY, but as to my knowledge there is no implementation of the PTY module in Windows. Any other idea?</p>