DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH PRINT BOOK
 

nl(CURSES)


nl -- enable/disable newline translation

Synopsis

cc [options] file -lcurses
#include <curses.h>

int nl(void);

int nonl(void);

Description

The nl(CURSES) function enables a mode in which carriage return is translated to newline on input. The nonl(CURSES) 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.

Usage

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

Standards Conformance

The Single UNIX Specification, Version 2; The Open Group.

References

curses(F)
© 2005 The SCO Group, Inc. All rights reserved.
SCO OpenServer Release 6.0.0 - 01 June 2005