Creates a software scrolling region within a window.
Curses Library (libcurses.a)
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.
Item | Description |
---|---|
Bmargin | Specifies the last line number in the scrolling region. |
Tmargin | Specifies the first line number in the scrolling region (0 is the top line of the window.) |
Window | Specifies the window to place the scrolling region in. You specify this parameter only with the wsetscrreg subroutine. |
setscrreg(9, 29);
WINDOW *my_window;
wsetscrreg(my_window, 9, 29);