title: Read a string with ncurses in C++
body: <p>I'm writing a text-based game in C++. At some point, I ask the user to input user names corresponding to the different players playing.</p>
  
  <p>I'm currently reading single char from ncurses like so:</p>
  
  <pre><code>move(y,x);
  printw("Enter a char");
  int char = getch();
  </code></pre>
  
  <p>However, I'm not sure how to a string. I'm looking for something like:</p>
  
  <pre><code>move(y,x);
  printw("Enter a name: ");
  std::string name = getstring();
  </code></pre>
  
  <p>I've seen many different guides for using ncurses all using a different set of functions that the other doesn't. As far as I can tell the lines between deprecated and non-deprecated functions is not very well defined.</p>