title: How to send input to the console as if the user is typing?
body: <p>This is my problem. I have a program that has to run in a TTY, cygwin provides this TTY. When I redirect stdIn the program fails because it does not have a TTY. I cannot modify this program, and need some way of automating it. </p>
  
  <p><strong>How can I grab the cmd.exe window and send it data and make it think the user is typing it?</strong> </p>
  
  <p>I'm using C#, I believe there is a way to do it with java.awt.Robot but I have to use C# for other reasons.</p>