Creates a software scrolling region within a window.
#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.
Note: Unlike the idlok subroutine, the setscrreg subroutines have nothing to do with the use of a physical scrolling region capability that the terminal may or may not have.
setscrreg(9, 29);
Note: Zero is always the first line.
WINDOW *my_window; wsetscrreg(my_window, 9, 29);
These subroutines are part of Base Operating System (BOS) Runtime.
The idlok subroutine, scrollok subroutine, wrefresh subroutine.
Curses Overview for Programming, List of Curses Subroutines, Manipulating Characters with Curses in AIX Version 4.3 General Programming Concepts: Writing and Debugging Programs.