1curs_deleteln(3X)                                            curs_deleteln(3X)
2
3
4

NAME

6       deleteln,  wdeleteln, insdelln, winsdelln, insertln, winsertln - delete
7       and insert lines in a curses window
8

SYNOPSIS

10       #include <curses.h>
11
12       int deleteln(void);
13       int wdeleteln(WINDOW *win);
14       int insdelln(int n);
15       int winsdelln(WINDOW *win, int n);
16       int insertln(void);
17       int winsertln(WINDOW *win);
18

DESCRIPTION

20       The deleteln and wdeleteln routines delete the line under the cursor in
21       the  window;  all  lines  below the current line are moved up one line.
22       The bottom line of the window is cleared.  The cursor position does not
23       change.
24
25       The  insdelln  and  winsdelln  routines, for positive n, insert n lines
26       into the specified window above the current line.  The n  bottom  lines
27       are  lost.  For negative n, delete n lines (starting with the one under
28       the cursor), and move the remaining lines up.  The bottom n  lines  are
29       cleared.  The current cursor position remains the same.
30
31       The  insertln and winsertln routines insert a blank line above the cur‐
32       rent line and the bottom line is lost.
33

RETURN VALUE

35       All routines return the integer ERR upon failure and an OK (SVr4 speci‐
36       fies  only  "an  integer value other than ERR") upon successful comple‐
37       tion.
38
39       X/Open defines no error conditions.  In  this  implementation,  if  the
40       window parameter is null, an error is returned.
41

PORTABILITY

43       These functions are described in the XSI Curses standard, Issue 4.  The
44       standard specifies that they return ERR on failure,  but  specifies  no
45       error conditions.
46

NOTES

48       Note that all but winsdelln may be macros.
49
50       These  routines do not require a hardware line delete or insert feature
51       in  the  terminal.   In  fact,  they  will  not   use   hardware   line
52       delete/insert  unless idlok(..., TRUE) has been set on the current win‐
53       dow.
54

SEE ALSO

56       curses(3X)
57
58
59
60                                                             curs_deleteln(3X)
Impressum