Scrolls a Curses window.
Curses Library (libcurses.a)
int scrl (int n);
int scroll (WINDOW *win);
int wscrl (WINDOW *win, int n);
The scroll subroutine scrolls win one line in the direction of the first line
The scrl and wscrl subroutines scroll the current or specified window. If n is positive, the window scrolls n lines toward the first line. Otherwise, the window scrolls -n lines toward the last line.
Theses subroutines do not change the cursor position. If scrolling is disabled for the current or specified window, these subroutines have no effect. The interaction of these subroutines with the setsccreg subroutine is currently unspecified.
|*win||Specifies the window to scroll.|
Upon successful completion, these subroutines return OK. Otherwise, they return ERR.
To scroll the user-defined window my_window up one line, enter:
WINDOW *my_window; scroll(my_window);
This subroutine is part of Base Operating System (BOS) Runtime.
The scrollok subroutine.
Curses Overview for Programming, List of Curses Subroutines, Manipulating Characters with Curses in AIX Version 4.3 General Programming Concepts: Writing and Debugging Programs.