Using ncurses in c language

285 views Asked by At

I'm using ncurses in one of my application in unix server. My application is in such a way that it displays different set of information.

So I have created different pads to display each content. Is there a way to use scroll option for these pads at a stretch?

As of now ncurses is limited to screen size, if I have display 3 or more pads at the same time it is not possible because it exceeds the screen size.

Is there any way to do to implement scroll using ncurses in this scenario?

1

There are 1 answers

0
Thomas Dickey On

ncurses (any curses library) supports overlapping windows. You do not have to tile (subdivide) the screen.

If you design your program to allow the user to select different views of the data, you can have multiple windows on the screen which use most of it.

For instance, the dialog program in this screenshot is showing overlapping windows (using touchwin and wrefresh). The tab character makes it switch focus to the next window:

enter image description here