DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH PRINT BOOK
 

curs_scroll(S)


curs_scroll: scroll, scrl, wscrl -- scroll a curses window

Syntax

cc ... -lcurses

#include <curses.h>

int scroll(WINDOW *win); int scrl(int n); int wscrl(WINDOW *win, int n);

Description

With the scroll(S) routine, the window is scrolled up one line. This involves moving the lines in the window data structure. As an optimization, if the scrolling region of the window is the entire screen, the physical screen is scrolled at the same time.

With the scrl(S) and wscrl(S) routines, for positive n scroll the window up n lines (line i+n becomes i); otherwise scroll the window down n lines. This involves moving the lines in the window character image structure. The current cursor position is not changed.

For these functions to work, scrolling must be enabled via scrollok(S).

Return values

All routines return the integer ERR on failure and an integer value other than ERR on successful completion.

Warning

The header file curses.h automatically includes the header files stdio.h and unctrl.h.

The following can be macros: scrl( ) and scroll( ).

Files


/usr/lib/libcurses.a
the library

See also

curses(S), curs_outopts(S)

Standards conformance

scroll(S), scrl(S), and wscrl(S) are not part of any currently supported standard; they were developed by UNIX System Laboratories, Inc. and are maintained by The SCO Group.
© 2003 Caldera International, Inc. All rights reserved.
SCO OpenServer Release 5.0.7 -- 11 February 2003