Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ nl(3X) — Reliant UNIX 5.44c4

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

curses(3X)

curses(5)

nl(3X)                                                               nl(3X)

NAME
     nl, nonl - enable/disable newline translation

SYNOPSIS
     cc [flag ...] file ... -lcurses [library ...]

     #include <curses.h>

     int nl(void);

     int nonl(void);

DESCRIPTION
     The nl() function enables a mode in which carriage return is
     translated to newline on input. The nonl() function disables the above
     translation. Initially, the above translation is enabled.

RETURN VALUE
     Upon successful completion, these functions return OK. Otherwise, they
     return ERR.

ERRORS
     No errors are defined.

NOTES
     The default translation adapts the terminal to environments in which
     newline is the line termination character. However, by disabling the
     translation with nonl(), the application can sense the pressing of the
     carriage return key.

SEE ALSO
     curses(3X), curses(5).























Page 1                       Reliant UNIX 5.44                Printed 11/98

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