]> ncurses.scripts.mit.edu Git - ncurses.git/blob - man/curs_deleteln.3x
ncurses 5.0
[ncurses.git] / man / curs_deleteln.3x
1 .\"***************************************************************************
2 .\" Copyright (c) 1998 Free Software Foundation, Inc.                        *
3 .\"                                                                          *
4 .\" Permission is hereby granted, free of charge, to any person obtaining a  *
5 .\" copy of this software and associated documentation files (the            *
6 .\" "Software"), to deal in the Software without restriction, including      *
7 .\" without limitation the rights to use, copy, modify, merge, publish,      *
8 .\" distribute, distribute with modifications, sublicense, and/or sell       *
9 .\" copies of the Software, and to permit persons to whom the Software is    *
10 .\" furnished to do so, subject to the following conditions:                 *
11 .\"                                                                          *
12 .\" The above copyright notice and this permission notice shall be included  *
13 .\" in all copies or substantial portions of the Software.                   *
14 .\"                                                                          *
15 .\" THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS  *
16 .\" OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF               *
17 .\" MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.   *
18 .\" IN NO EVENT SHALL THE ABOVE COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,   *
19 .\" DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR    *
20 .\" OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR    *
21 .\" THE USE OR OTHER DEALINGS IN THE SOFTWARE.                               *
22 .\"                                                                          *
23 .\" Except as contained in this notice, the name(s) of the above copyright   *
24 .\" holders shall not be used in advertising or otherwise to promote the     *
25 .\" sale, use or other dealings in this Software without prior written       *
26 .\" authorization.                                                           *
27 .\"***************************************************************************
28 .\"
29 .\" $Id: curs_deleteln.3x,v 1.5 1999/02/07 03:58:20 tom Exp $
30 .TH curs_deleteln 3X ""
31 .SH NAME
32 \fBdeleteln\fR, \fBwdeleteln\fR, \fBinsdelln\fR,
33 \fBwinsdelln\fR, \fBinsertln\fR, \fBwinsertln\fR - delete and insert
34 lines in a \fBcurses\fR window
35 .SH SYNOPSIS
36 \fB#include <curses.h>\fR
37
38 \fBint deleteln(void);\fR
39 .br
40 \fBint wdeleteln(WINDOW *win);\fR
41 .br
42 \fBint insdelln(int n);\fR
43 .br
44 \fBint winsdelln(WINDOW *win, int n);\fR
45 .br
46 \fBint insertln(void);\fR
47 .br
48 \fBint winsertln(WINDOW *win);\fR
49 .br
50 .SH DESCRIPTION
51 The \fBdeleteln\fR and \fBwdeleteln\fR routines delete the line under the
52 cursor in the window; all lines below the current line are moved up one line.
53 The bottom line of the window is cleared.  The cursor position does not change.
54
55 The \fBinsdelln\fR and \fBwinsdelln\fR routines, for positive \fIn\fR, insert
56 \fIn\fR lines into the specified window above the current line.  The \fIn\fR
57 bottom lines are lost.  For negative \fIn\fR, delete \fIn\fR lines (starting
58 with the one under the cursor), and move the remaining lines up.  The bottom
59 \fIn\fR lines are cleared.  The current cursor position remains the same.
60
61 The \fBinsertln\fR and \fBinsertln\fR routines, insert a blank line above the
62 current line and the bottom line is lost.
63 .SH RETURN VALUE
64 All routines return the integer \fBERR\fR upon failure and an \fBOK\fR (SVr4
65 specifies only "an integer value other than \fBERR\fR") upon successful
66 completion.
67 .SH PORTABILITY
68 These functions are described in the XSI Curses standard, Issue 4.  The
69 standard specifies that they return \fBERR\fR on failure, but specifies no
70 error conditions.
71 .SH NOTES
72 Note that all but \fBwinsdelln\fR may be macros.
73
74 These routines do not require a hardware line delete or insert feature in the
75 terminal.  In fact, they won't use hardware line delete/insert unless
76 \fBidlok(..., TRUE)\fR has been set on the current window.
77 .SH SEE ALSO
78 \fBcurses\fR(3X)
79 .\"#
80 .\"# The following sets edit modes for GNU EMACS
81 .\"# Local Variables:
82 .\"# mode:nroff
83 .\"# fill-column:79
84 .\"# End: