[GRASS5] OUT OF CONTEXT: QUERY ON NCURSES
Glynn Clements
glynn.clements at virgin.net
Fri Jun 20 14:12:49 EDT 2003
Vidya Kotamraju wrote:
> Sorry for the out-of-context question but cudnt locate a more
> appropriate mailin list.
> I am developing a C code to be integrated with GRASS that makes use of
> ncurses.
> The program needs to open a text file and scroll down if the
> number of lines in the file exceeds the screen size.
> Though I am able to scroll up and down succesfully ( by making use of
> scrl() function) I lose the text below and above the cursor respectively.
> How do i maintain continuity while displaying the file ?
You have to actually store the file's contents somewhere, and use it
to redraw the exposed parts of the window whenever you scroll.
--
Glynn Clements <glynn.clements at virgin.net>
More information about the grass-dev
mailing list