Creates a software scrolling region within a window.
Curses Library (libcurses.a)
#include <curses.h>
setscrreg( Tmargin, Bmargin)
int Tmargin, Bmargin;
wsetscrreg( Window, Tmargin, Bmargin)
WINDOW *Window;
int Tmargin, Bmargin;
The setscrreg and wsetscrreg subroutines create a software scrolling region within a window. Use the setscrreg subroutine with the stdscr and the the wsetscrreg subroutine with user-defined windows.
You pass the setscrreg subroutines values for the top line and bottom line of the region. If the setscrreg subroutine and scrollok subroutine are enabled for the region, any attempt to move off the line specified by the Bmargin parameter causes all the lines in the region to scroll up one line.
setscrreg(9, 29);
WINDOW *my_window; wsetscrreg(my_window, 9, 29);
The idlok (idlok Subroutine) subroutine, scrollok (scrollok Subroutine) subroutine, wrefresh (refresh or wrefresh Subroutine) subroutine.
Curses Overview for Programming, List of Curses Subroutines, Manipulating Characters with Curses in AIX 5L Version 5.2 General Programming Concepts: Writing and Debugging Programs.