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

setscrreg

» 

Technical documentation

Complete book in PDF
» Feedback

 » Table of Contents

 » Index

The setscrreg routine is used to set the scrolling region in a window.

Syntax

   #include <curses.h>



   int setscrreg (int top, int bot);

   int wssetscrreg (WINDOW *win, int top, int bot);

Parameters

bot

The bottom line of the scrolling region (top of the window is line 0).

top

The top line of the scrolling region (top of the window is line 0).

win

A pointer to the window in which to set up the scroll window.

Return Values

None

Description

The setscrreg() and wsetscrreg() routines set up scrolling regions in the windows stdscr and win, respectively. The dimensions of the scrolling region are defined by the top and bot parameters. If scrollok() is active, any attempt to move the cursor beyond the bottom margin of the scrolling region scrolls the text in the scrolling region up one line.

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

Implementation Considerations

Identical to XPG/3

See Also

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

Portability

HP-UX, UNIX System V, XPG/3

Feedback to webmaster