title: C/C++ NCURSES, get all characters typed in a WINDOW
body: <p>What I'm trying to achieve (more than “to reproduce”):</p>
  <p>In other projects (not TUI contexts) I've used several GUI toolkit (<a href="https://wxwidgets.org/" rel="nofollow noreferrer" title="WebSite of wxWidgets">wxWidgets</a>, <a href="https://wxpython.org/" rel="nofollow noreferrer" title="WebSite of wxPython">wxPython</a>), etc. (just to name a few)), and most of the time they have handy methods on widgets receiving user input (like “text control” (single and/or multi lines)), methods which are used to get the content of the widgets into any container/object (e.g. <code>string</code> (<strong>1</strong>)).</p>
  <p>Is there any similar functionality in <strong>ncurses</strong>?</p>
  <p>Lets say I have the following code:</p>
  <pre class="lang-cpp prettyprint-override"><code>WINDOW *textarea = newwin(height, width, starty, startx);
  
  /**
   * There, code for letting the user type text in the textarea 
  **/
  
  switch (ch)
  {
      case KEY_F(4): // Save
          /**
           * What do I do from here
           * to get all the content of the textarea WINDOW
           * that the user typed in
          **/
          break;
  }
  </code></pre>
  <p>Does ncurses provides such a feature?</p>
  <p>I'm working on a lightweight terminal text editor (not a source code editor, simply a text editor), and it would greatly simplify my job if I could do such a thing with ncurses.</p>
  <hr />
  <p><strong>Notes</strong> (for the curious)</p>
  <p>(1): For example the <a href="https://docs.wxwidgets.org/3.0/classwx_text_ctrl.html" rel="nofollow noreferrer"><code>wxTextCtrl::GetValue</code></a> which returns a <a href="https://docs.wxwidgets.org/2.8.8/wx_wxtextctrl.html#wxtextctrlgetvalue" rel="nofollow noreferrer"><code>wxString</code></a></p>