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

scrollok

» 

Technical documentation

Complete book in PDF
» Feedback

 » Table of Contents

 » Index

The scrollok routine is used to enable scrolling of the screen.

Syntax

   #include <curses.h>



   int scrollok (WINDOW *win, bool bf);

Parameters

bf

A Boolean expression.

win

A pointer to the window in which to enable scrolling.

Return Values

OK

Successful completion.

ERR

An error occurred.

Description

The scrollok() routine controls what happens when the cursor advances outside the bottom boundary of a window or scrolling region. When enabled, if the cursor advances outside the bottom boundary of a window or scrolling region, a call to wscrl() scrolls up one line and updates the screen. If scrollok() is disabled, a call to the wscrl() routine leaves the cursor on the bottom of the line.

The terminal screen produces a scrolling effect if idlok() is also enabled.

Implementation Considerations

Identical to XPG/3

See Also

idlok(), scroll(), waddch(), wscrl()

Portability

HP-UX, UNIX System V, XPG/3

Feedback to webmaster