Museum

Home

Lab Overview

Retrotechnology Articles

⇒ Online Manual

Media Vault

Software Library

Restoration Projects

Artifacts Sought

scrollok(3)  —  Subroutines

Digital

NAME

scrollok − enable screen scrolling

SYNOPSIS

#include <curses.h>

int scrollok(win, bf)
WINDOW ∗win;
bool bf;

DESCRIPTION

This option controls what happens when the cursor is moved off the edge of the specified window or scrolling region, either from a newline on the bottom line, or when the last character of the last line is typed. If disabled (bf is FALSE), the cursor is left on the bottom line.  If enabled, the window is scrolled up one line and then refreshed. 

RETURN VALUES

The scrollok function returns OK on success and ERR on error. 

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