diff options
author | ache <ache@FreeBSD.org> | 1994-12-02 06:40:24 +0000 |
---|---|---|
committer | ache <ache@FreeBSD.org> | 1994-12-02 06:40:24 +0000 |
commit | da3bc85e1374c51c5dced6baacf60288a5a3ea40 (patch) | |
tree | 0beef683196d6d2f76165d3756c20ac09c0ee20b /lib/libncurses/lib_scrreg.c | |
parent | d856190a55e1ac4bbc1e389083c70c3a9c37746e (diff) | |
download | FreeBSD-src-da3bc85e1374c51c5dced6baacf60288a5a3ea40.zip FreeBSD-src-da3bc85e1374c51c5dced6baacf60288a5a3ea40.tar.gz |
Upgrade to version 1.8.6
Diffstat (limited to 'lib/libncurses/lib_scrreg.c')
-rw-r--r-- | lib/libncurses/lib_scrreg.c | 18 |
1 files changed, 11 insertions, 7 deletions
diff --git a/lib/libncurses/lib_scrreg.c b/lib/libncurses/lib_scrreg.c index d8c1423..b7d9ae2 100644 --- a/lib/libncurses/lib_scrreg.c +++ b/lib/libncurses/lib_scrreg.c @@ -11,22 +11,26 @@ */ #include "curses.priv.h" +#include "terminfo.h" int wsetscrreg(WINDOW *win, int top, int bottom) { - T(("wsetscrreg(%x,%d,%d) called", win, top, bottom)); + T(("wsetscrreg(%x,%d,%d) called", win, top, bottom)); if (top >= 0 && top <= win->_maxy && bottom >= 0 && bottom <= win->_maxy && bottom > top) { - win->_regtop = top; - win->_regbottom = bottom; + win->_regtop = top; + win->_regbottom = bottom; T(("correctly set scrolling region between %d and %d", top, bottom)); + if (change_scroll_region != NULL) { + T(("changing scroll region")); + putp(tparm(change_scroll_region, top, bottom)); + } - return(OK); - } - else - return(ERR); + return(OK); + } else + return(ERR); } |