title: ncurses and stdin blocking
body: <p>I have <em>stdin</em> in a <code>select()</code> set and I want to take a string from <em>stdin</em> whenever the user types it and hits <kbd>Enter</kbd>.</p>
  
  <p>But select is triggering <em>stdin</em> as ready to read before <kbd>Enter</kbd> is hit, and, in rare cases, before anything is typed at all. This hangs my program on <code>getstr()</code> until I hit <kbd>Enter</kbd>.</p>
  
  <p>I tried setting <code>nocbreak()</code> and it's perfect really except that nothing gets echoed to the screen so I can't see what I'm typing. And setting <code>echo()</code> doesn't change that.</p>
  
  <p>I also tried using <code>timeout(0)</code>, but the results of that was even crazier and didn't work.</p>