| Main index | Section 3 | 日本語 | Options |
#include <curses.h>int scroll(WINDOW *win);
int scrl(int n); int wscrl(WINDOW *win, int n);
scrl and wscrl scroll stdscr or the specified window up or down depending on the sign of n.
| &#187; | For positive n, line i+n becomes i (scrolling up); |
| &#187; | for negative n, line i-n becomes i (scrolling down). |
ncurses returns ERR if scrolling is not enabled in the window, for example with scrollok(3X), or if the WINDOW pointer is null.
scrl and scroll may be implemented as macros.
SVr4 specifies only an integer value other than ERR as a successful return value.
SVr4 indicates that the optimization of physically scrolling immediately if the scroll region is the entire screen is performed, not may be performed. ncurses deliberately does not guarantee that this will occur, to leave open the possibility of smarter optimization of multiple scroll actions on the next update.
Neither SVr4 curses nor X/Open Curses specify whether the current attribute or current color pair of blanks generated by the scroll function are zeroed. ncurses does so.
| 2024-04-20 | curs_scroll (3X) | ncurses 6.5 |
| Main index | Section 3 | 日本語 | Options |
Please direct any comments about this manual page service to Ben Bullock. Privacy policy.
| “ | Unix’s “power tools” are more like power switchblades that slice off the operator’s fingers quickly and efficiently. | ” |
| — The Unix Haters' handbook | ||