1nl(3XCURSES) X/Open Curses Library Functions nl(3XCURSES)
2
3
4
6 nl, nonl - enable/disable newline control
7
9 cc [ flag... ] file... -I /usr/xpg4/include -L /usr/xpg4/lib \
10 -R /usr/xpg4/lib -lcurses [ library... ]
11
12 c89 [ flag... ] file... -lcurses [ library... ]
13
14 #include <curses.h>
15
16 int nl(void);
17
18
19 int nonl(void);
20
21
23 The nl() function enables the handling of newlines. The nl() function
24 converts newline into carriage return and line feed on output and con‐
25 verts carriage return into newline on input. nonl() disables the han‐
26 dling of newlines.
27
28
29 The handling of newlines is initially enabled. Disabling the handling
30 of newlines results in faster cursor motion since X/Open Curses can
31 use the line-feed capability more efficiently.
32
34 On success, these functions return OK. Otherwise, they return ERR.
35
37 None.
38
40 See attributes(5) for descriptions of the following attributes:
41
42
43
44
45 ┌─────────────────────────────┬─────────────────────────────┐
46 │ ATTRIBUTE TYPE │ ATTRIBUTE VALUE │
47 ├─────────────────────────────┼─────────────────────────────┤
48 │Interface Stability │Standard │
49 ├─────────────────────────────┼─────────────────────────────┤
50 │MT-Level │Unsafe │
51 └─────────────────────────────┴─────────────────────────────┘
52
54 libcurses(3XCURSES), attributes(5), standards(5)
55
56
57
58SunOS 5.11 5 Jun 2002 nl(3XCURSES)