title: Handing user input on terminal for application launched via exec in C++
body: <p>xfreerdp asks for password if /p is not supplied as command line argument; when launched via terminal. </p>
  
  <p>But when it is launched via execvp or exec, there is no prompt? </p>
  
  <p>How to show this prompt? Is there a way where I can directly input password on prompt programmatically? </p>
  
  <p>Same is automatically handled in Mac using swift using tasks &amp; pipes. How to do it in C++.</p>