1curs_deleteln(3X) curs_deleteln(3X)
2
3
4
6 deleteln, wdeleteln, insdelln, winsdelln, insertln, winsertln - delete
7 and insert lines in a curses window
8
10 #include <curses.h>
11
12 int deleteln(void);
13 int wdeleteln(WINDOW *win);
14
15 int insdelln(int n);
16 int winsdelln(WINDOW *win, int n);
17
18 int insertln(void);
19 int winsertln(WINDOW *win);
20
22 The deleteln and wdeleteln routines delete the line under the cursor in
23 the window; all lines below the current line are moved up one line.
24 The bottom line of the window is cleared. The cursor position does not
25 change.
26
27 The insdelln and winsdelln routines, for positive n, insert n lines
28 into the specified window above the current line. The n bottom lines
29 are lost. For negative n, delete n lines (starting with the one under
30 the cursor), and move the remaining lines up. The bottom n lines are
31 cleared. The current cursor position remains the same.
32
33 The insertln and winsertln routines insert a blank line above the cur‐
34 rent line and the bottom line is lost.
35
37 All routines return the integer ERR upon failure and an OK (SVr4 speci‐
38 fies only "an integer value other than ERR") upon successful comple‐
39 tion.
40
41 X/Open defines no error conditions. In this implementation, if the
42 window parameter is null, an error is returned.
43
45 These functions are described in the XSI Curses standard, Issue 4. The
46 standard specifies that they return ERR on failure, but specifies no
47 error conditions.
48
50 Note that all but winsdelln may be macros.
51
52 These routines do not require a hardware line delete or insert feature
53 in the terminal. In fact, they will not use hardware line delete/in‐
54 sert unless idlok(..., TRUE) has been set on the current window.
55
57 curses(3X)
58
59
60
61 curs_deleteln(3X)