curs_delch(3X)                                                curs_delch(3X)

NAME         top

       delch,  wdelch, mvdelch, mvwdelch - delete character under the cursor
       in a curses window

SYNOPSIS         top

       #include <curses.h>

       int delch(void);
       int wdelch(WINDOW *win);
       int mvdelch(int y, int x);
       int mvwdelch(WINDOW *win, int y, int x);

DESCRIPTION         top

       These routines delete the character under the cursor; all characters
       to the right of the cursor on the same line are moved to the left one
       position and the last character on the line is filled with a blank.
       The cursor position does not change (after moving to y, x, if
       specified).  (This does not imply use of the hardware delete
       character feature.)

RETURN VALUE         top

       All routines return the integer ERR upon failure and an OK (SVr4
       specifies only "an integer value other than ERR") upon successful

       Functions with a "mv" prefix first perform a cursor movement using
       wmove, and return an error if the position is outside the window, or
       if the window pointer is null.

NOTES         top

       Note that delch, mvdelch, and mvwdelch may be macros.

PORTABILITY         top

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

SEE ALSO         top


COLOPHON         top

       This page is part of the ncurses (new curses) project.  Information
       about the project can be found at 
       ⟨⟩.  If you have a
       bug report for this manual page, send it to  This page was obtained from the
       project's upstream Git mirror of the CVS repository 
       ⟨git://⟩ on 2017-09-15.  If you
       discover any rendering problems in this HTML version of the page, or
       you believe there is a better or more up-to-date source for the page,
       or you have corrections or improvements to the information in this
       COLOPHON (which is not part of the original manual page), send a mail