1curs_scroll(3X)                                                curs_scroll(3X)
2
3
4

NAME

6       scroll, scrl, wscrl - scroll a curses window
7

SYNOPSIS

9       #include <curses.h>
10
11       int scroll(WINDOW *win);
12       int scrl(int n);
13       int wscrl(WINDOW *win, int n);
14

DESCRIPTION

16       The  scroll routine scrolls the window up one line.  This involves mov‐
17       ing the lines in the window data structure.  As an optimization, if the
18       scrolling  region  of  the  window  is  the entire screen, the physical
19       screen may be scrolled at the same time.
20
21       For positive n, the scrl and wscrl routines  scroll  the  window  up  n
22       lines  (line  i+n becomes i); otherwise scroll the window down n lines.
23       This involves moving the lines in the window character image structure.
24       The current cursor position is not changed.
25
26       For these functions to work, scrolling must be enabled via scrollok.
27

RETURN VALUE

29       These routines return ERR upon failure, and OK (SVr4 only specifies "an
30       integer value other than ERR") upon successful completion.
31
32       X/Open defines no error conditions.
33
34       This implementation returns an error if the window pointer is null,  or
35       if scrolling is not enabled in the window, e.g., with scrollok.
36

NOTES

38       Note that scrl and scroll may be macros.
39
40       The  SVr4  documentation  says  that  the  optimization  of  physically
41       scrolling immediately if the scroll region is the  entire  screen  “is”
42       performed,  not  “may  be” performed.  This implementation deliberately
43       does not guarantee that this will occur, to leave open the  possibility
44       of smarter optimization of multiple scroll actions on the next update.
45
46       Neither  the SVr4 nor the XSI documentation specify whether the current
47       attribute or current color-pair of blanks generated by the scroll func‐
48       tion is zeroed.  Under this implementation it is.
49

PORTABILITY

51       The XSI Curses standard, Issue 4 describes these functions.
52

SEE ALSO

54       curses(3X), curs_outopts(3X)
55
56
57
58                                                               curs_scroll(3X)
Impressum