title: Launch xterm to capture user input
body: <p>I wanted to be able to in C++ be able to launch xterm and echo back user input. I'm looking for something like this</p>
  <pre><code>int main() {
    execlp(some arguments involving xterm)
    // user enters input in terminal
    String userInput = receiveFromxterm();
    cout &lt;&lt; userInput;
  </code></pre>
  <p>Essentially I want to be able to capture data and echo data.</p>