]> ncurses.scripts.mit.edu Git - ncurses.git/blob - man/curs_delch.3x
ncurses 6.1 - patch 20190302
[ncurses.git] / man / curs_delch.3x
1 .\"***************************************************************************
2 .\" Copyright (c) 1998-2010,2018 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_delch.3x,v 1.12 2018/07/28 21:34:06 tom Exp $
30 .TH curs_delch 3X ""
31 .SH NAME
32 \fBdelch\fR,
33 \fBwdelch\fR,
34 \fBmvdelch\fR,
35 \fBmvwdelch\fR \- delete character under the cursor in a \fBcurses\fR window
36 .SH SYNOPSIS
37 \fB#include <curses.h>\fR
38 .sp
39 \fBint delch(void);\fR
40 .br
41 \fBint wdelch(WINDOW *win);\fR
42 .br
43 \fBint mvdelch(int y, int x);\fR
44 .br
45 \fBint mvwdelch(WINDOW *win, int y, int x);\fR
46 .br
47 .SH DESCRIPTION
48 These routines delete the character under the cursor; all characters to the
49 right of the cursor on the same line are moved to the left one position and the
50 last character on the line is filled with a blank.
51 The cursor position does
52 not change (after moving to \fIy\fR, \fIx\fR, if specified).
53 (This does not
54 imply use of the hardware delete character feature.)
55 .SH RETURN VALUE
56 All routines return the integer \fBERR\fR upon failure and an \fBOK\fR (SVr4
57 specifies only "an integer value other than \fBERR\fR") upon successful
58 completion.
59 .PP
60 Functions with a "mv" prefix first perform a cursor movement using
61 \fBwmove\fP, and return an error if the position is outside the window,
62 or if the window pointer is null.
63 .SH NOTES
64 Note that \fBdelch\fR, \fBmvdelch\fR, and \fBmvwdelch\fR may be macros.
65 .SH PORTABILITY
66 These functions are described in the XSI Curses standard, Issue 4.
67 The
68 standard specifies that they return \fBERR\fR on failure, but specifies no
69 error conditions.
70 .SH SEE ALSO
71 \fBcurses\fR(3X)