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