3 \fBscroll\fR, \fBsrcl\fR, \fBwscrl\fR - scroll a \fBcurses\fR window
5 \fB#include <curses.h>\fR
7 \fBint scroll(WINDOW *win);\fR
11 \fBint wscrl(WINDOW *win, int n);\fR
14 The \fBscroll\fR routine scrolls the window up one line. This involves moving
15 the lines in the window data structure. As an optimization, if the scrolling
16 region of the window is the entire screen, the physical screen may be scrolled
19 For positive \fIn\fR, the \fBscrl\fR and \fBwscrl\fR routines scroll the
20 window up \fIn\fR lines (line \fIi\fR+\fIn\fR becomes \fIi\fR); otherwise
21 scroll the window down \fIn\fR lines. This involves moving the lines in the
22 window character image structure. The current cursor position is not changed.
24 For these functions to work, scrolling must be enabled via \fBscrollok\fR.
26 These routines return \fBERR\fR upon failure, and \fBOK\fR (SVr4 only specifies
27 "an integer value other than \fBERR\fR") upon successful completion.
29 Note that \fBscrl\fR and \fBscroll\fR may be macros.
31 The SVr4 documentation says that the optimization of physically scrolling
32 immediately if the scroll region is the entire screen "is" performed, not
33 "may be" performed. This implementation deliberately does not guarantee
34 that this will occur, in order to leave open the possibility of smarter
35 optimization of multiple scroll actions on the next update.
37 Neither the SVr4 documentation specifies whether the current attribute or
38 current color-pair of blanks generated by the scroll function is zeroed.
39 Under this implementation it is.
41 The XSI Curses standard, Issue 4 describes these functions.
43 \fBcurses\fR(3X), \fBcurs_outopts\fR(3X)
45 .\"# The following sets edit modes for GNU EMACS