nl(3XC)
NAME
nl, nonl − enable/disable newline control
SYNOPSIS
#include <curses.h>
int nl(void);
int nonl(void);
DESCRIPTION
The nl() function enables the handling of newlines. The nl() function converts newline into carriage return and line feed on output and converts carriage return into newline on input. nonl() disables the handling of newlines.
The handling of newlines is initially enabled. Disabling the handling of newlines results in faster cursor motion since X/Open Curses can use the line-feed capability more efficiently.
RETURN VALUES
On success, these functions return OK. Otherwise, they return ERR.
ERRORS
None.
SunOS 5.6 — Last change: 1 Jun 1996