Museum

Home

Lab Overview

Retrotechnology Articles

⇒ Online Manual

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

scrollok(3cur)

setscrreg(3cur)

Name

setscrreg, wsetscrreg − set scrolling region

Syntax

#include <cursesX.h>

int setscrreg(top, bot)
int top, bot;

int wsetscrreg(win, top, bot)
WINDOW ∗win;
int top, bot;

Description

The setscrreg routine sets the scrolling region for the default window.

The wsetscrreg routine sets the scrolling region for the named window. Use these routines to set a software scrolling region in a window.

For both routines, the line numbers of the top and bottom margins of the scrolling region are contained in top and bot. Line 0 is the top line of the window.

If this option and scrollok are enabled, an attempt to move off the bottom margin line will cause all lines in the scrolling region to scroll up one line. Only the text of the window is scrolled.

Return Values

No return values are defined for these functions. 

See Also

scrollok(3cur)

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026