title: Ncurses scrollable text reader
body: <p>I need to implement a simple text reader, sort of like <strong>less</strong> for unix, using ncurses.</p>
  
  <p>I'm having problems understanding how to do so. I currently have a window, and everytime I press the down key (for example) I refresh all the lines at the appropriate starting point, giving it a scrolling-like feel. The problem comes with text-wrapping, which unfortunately screws up my current system.</p>
  
  <p>I was wondering if some of you already did something like this and could help me out. I frankly can't find anything related to this on Google other than "pad"s, which apparently aren't scrollable.</p>