title: Use stdin along with ncurses
body: <p>I'm using <code>ncurses</code> for simple UI that involves getting input from the user. 
  The input is a window of 1 row height, and all there is, is a cursor.
  I'm currently using <code>wgetnstr(inputwindow, input, inputlen)</code>.</p>
  
  <p>What I would like to, is to be able to edit that input line, much like readline does. That is, being able to use ^W (^U works btw), go back in the buffer and make a change, etc. 
  If I could keep the history of the input and be able to access it with the 'up' arrow, that'd be great too. </p>
  
  <p>However, I haven't been able to make stdin work with anything but the functions that <code>ncurses</code> provides. It'd be fine on my part, to drop the <code>inputwindow</code> if that would get me the above benefits. But I'm not sure if it's possible. </p>
  
  <p>So,</p>
  
  <ul>
  <li>Is it possible to use <code>readline</code> or have such functionality using <code>ncurses</code> and the input function it provides ?
  and/or</li>
  <li>Is it possible and how can I have an empty line below the curses window, that would allow the user to give input using stdin directly (that is all the common read input functions, and thus even <code>readline</code> directly) ? </li>
  </ul>
  
  <p>If those are doable, some simple code would be great, but guidance and pointers are great too. If not, it'd be great to know, and not waste time trying to make it work. </p>