title: How to simulate keyboard input to a console application?
body: <p>I have developed an application in bash that uses "whiptail" to display dialogs in a terminal.
  (I personnally don't like this kind of UI but i'm only a developer, i don't make decisions ...). Anyway, now i have to test it, and i would like to simulate a user that types values, press "Enter", "Echap", "Tab", "down arrow", "up arrow"</p>
  
  <p>I didn't get <em>expect</em> working and it seems it is not possible (<a href="http://oldsite.debianhelp.org/node/11812" rel="nofollow">http://oldsite.debianhelp.org/node/11812</a>).</p>
  
  <p>Edit: There is no X on the machine, so xdotool is not suitable. I'm looking for a solution that doesn't need to install anything (because we are not allowed to add programs to the system to test it). </p>
  
  <p>Long story made short, i'm looking for a solution like "writing bytes to the process's stdin" or "writing on the keyboard device in /dev", something like that.</p>
  
  <p>Thanks</p>