HPlogo MPE/iX Developer's Kit Reference Manual Volume 2: HP 3000 MPE/iX Computer Systems > Chapter 4 CURSES

srcl wscrl scrol

» 

Technical documentation

Complete book in PDF
» Feedback

 » Table of Contents

 » Index

The srcl set of routines is used to scroll a window.

Syntax

   #include <curses.h>



   int scrl (int n);

   int wscrl (WINDOW *win, int n);



   int scroll (WINDOW *win);

Parameters

win

A pointer to the window in which to scroll.

n

The number and direction of lines to scroll.

Return Values

OK

Successful completion.

ERR

An error occurred.

Description

The scroll() routine scrolls the window win up one line. The current cursor position is not changed.

The scrl() and wscrl() routines scroll the window stdscr or win up or down n lines, where n is a positive or negative integer, respectively.

The scrollok() routine must be enabled for these routines to work.

NOTE: The scroll() and scrl() routines are macros.

Implementation Considerations

The scroll() routine is identical to XPG/3. The wscrl() and scrl() routines are UNIX System V implementations.

See Also

scrollok(), waddch()

Portability

The scroll() routine conforms to HP-UX, UNIX System V, and XPG/3. The wscrl() and scrl() routines conform to UNIX System V.

Feedback to webmaster