scroll(3) — Subroutines
Digital
NAME
scroll − scroll window
SYNOPSIS
#include <curses.h>
int scroll(win)
WINDOW ∗win;
DESCRIPTION
The window is scrolled up one line. This involves moving the lines in the window data structure.
You would not normally use this routine as the terminal scrolls automatically if scrollok is enabled. A typical case where scroll might be used is with a screen editor.
RETURN VALUES
The scroll function returns OK on success and ERR on error.