[ Previous | Next | Contents | Glossary | Home | Search ]
AIX Version 4.3 Base Operating System and Extensions Technical Reference, Volume 2

nl or nonl Subroutine


Enables/disables newline translation.


Curses Library (libcurses.a)


#include <curses.h>
int nl(void);
int nonl(void);


The nl subroutine enables a mode in which carriage return is translated to newline on input. The nonnl subroutine disables the above translation. Initially, the above translation is enabled.

Return Values

Upon successful completion, these subroutines return OK. Otherwise, they return ERR.


  1. To instruct wgetch to translate the carriage return into a newline, enter:
  2. To instruct wgetch not to translate the carriage return, enter:

Implementation Specifics

These subroutines are part of Base Operating System (BOS) Runtime.

Related Information

The refresh subroutine, waddch subroutine.

Curses Overview for Programming, Understanding Terminals with Curses, List of Curses Subroutines in AIX Version 4.3 General Programming Concepts: Writing and Debugging Programs.

[ Previous | Next | Contents | Glossary | Home | Search ]