Reputation: 2257
I am in the midst of creating a text user interface app for a school project. I really need help on how to implement a scroll box or list box in NCurses/PDCurses(in C).
As far as I researched, scrollok makes it possible. I have tried it to my project but to no avail.
The scroll box is used for showing list of names vertically and when user presses "N", it scrolls next part and when the user presses "P" it scrolls to previous part.
Thanks!
Upvotes: 1
Views: 3047
Reputation: 19375
scrollok
doesn't magically create a scroll box, it just allows the window to be scrolled up. You do not even need scrollok
for your purpose. Just
Upvotes: 3
Reputation: 97938
Have you seen CDK (Curses Development Kit) it has source code so you can inspect or just use it. There is also information on ncurses site on this toolkit.
Upvotes: 0