I need to implement a simple text reader, sort of less for unix using ncurses.
I am having trouble understanding how to do this. I currently have a window, and every time I press the down key (for example), I update all the lines at the corresponding starting point, giving it a scroll feel. The problem is with text wrapping, which unfortunately twists my current system.
I was wondering if some of you have already done something similar and can help me. I frankly can't find anything like this on Google except the "pad", which apparently doesn't scroll.
source
share