Museum

Home

Lab Overview

Retrotechnology Articles

⇒ Online Manual

Media Vault

Software Library

Restoration Projects

Artifacts Sought

nl(3cur)

Name

nl, nonl − enable/disable newline control

Syntax

#include <cursesX.h>

int nl()

int nonl()

Description

The nl routine enables the newline control translations. When newline control is enabled, a newline is translated into a carriage return and a linefeed on output, and a return is translated into a newline on input. Initially, these translations do occur.

The nonl routine disables these translations, allowing the curses program to use the linefeed capability of the terminal, resulting in faster cursor motion. The nl routine is a macro.

Return Values

The nl and nonl functions return OK on success and ERR on error.

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