title: XCode 4 console won't take user input
body: <p>In XCode 4, when I run something like this:</p>
  
  <pre><code>string input;
  cout &lt;&lt; "Enter command" &lt;&lt; endl;
  getline(cin, input);
  cout &lt;&lt; "You entered: " &lt;&lt; input &lt;&lt; endl;
  </code></pre>
  
  <p>I see my "Enter command" prompt in the console. But when I place my mouse cursor below it and start typing the cursor doesn't move, and my keystrokes don't show up. It basically behaves like a read-only text box. What am I doing wrong? How can I interact with my program as if it were running in the terminal?</p>