setscrreg(3cur)setscrreg(3cur)Name
setscrreg, wsetscrreg - set scrolling region
Syntax
#include <cursesX.h>
int setscrreg(top, bot)
int top, bot;
int wsetscrreg(win, top, bot)
WINDOW ∗win;
int top, bot;
Description
The routine sets the scrolling region for the default window.
The routine sets the scrolling region for the named window. Use these
routines to set a software scrolling region in a window.
For both routines, the line numbers of the top and bottom margins of
the scrolling region are contained in and Line 0 is the top line of the
window.
If this option and are enabled, an attempt to move off the bottom mar‐
gin line will cause all lines in the scrolling region to scroll up one
line. Only the text of the window is scrolled.
Return Values
No return values are defined for these functions.
See Alsoscrollok(3cur)setscrreg(3cur)