This method is deprecated or moved on the latest stable version.
The last existing version (v1_9_3_392) is shown here.
setscrreg(p1, p2)
public
Set a software scrolling region in a window.
top and bottom are lines numbers of the margin.
If this option and Curses::Window.scrollok are enabled, an attempt to move off the bottom margin line causes
all lines in the scrolling region to scroll one line in the direction of
the first line. Only the text of the window is scrolled.
static VALUE
window_setscrreg(VALUE obj, VALUE top, VALUE bottom)
{
#ifdef HAVE_WSETSCRREG
struct windata *winp;
int res;
GetWINDOW(obj, winp);
res = wsetscrreg(winp->window, NUM2INT(top), NUM2INT(bottom));
/* may have to raise exception on ERR */
return (res == OK) ? Qtrue : Qfalse;
#else
return Qfalse;
#endif
}