NAME | SYNOPSIS | DESCRIPTION | RETURN VALUE | PORTABILITY | NOTES | SEE ALSO | COLOPHON

curs_deleteln(3X)                                          curs_deleteln(3X)

NAME         top

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

SYNOPSIS         top

       #include <curses.h>
       int deleteln(void);
       int wdeleteln(WINDOW *win);
       int insdelln(int n);
       int winsdelln(WINDOW *win, int n);
       int insertln(void);
       int winsertln(WINDOW *win);

DESCRIPTION         top

       The deleteln and wdeleteln routines delete the line under the cursor
       in the window; all lines below the current line are moved up one
       line.  The bottom line of the window is cleared.  The cursor position
       does not change.
       The insdelln and winsdelln routines, for positive n, insert n lines
       into the specified window above the current line.  The n bottom lines
       are lost.  For negative n, delete n lines (starting with the one
       under the cursor), and move the remaining lines up.  The bottom n
       lines are cleared.  The current cursor position remains the same.
       The insertln and winsertln routines insert a blank line above the
       current line and the bottom line is lost.

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
       completion.
       X/Open defines no error conditions.  In this implementation, if the
       window parameter is null, an error is returned.

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.

NOTES         top

       Note that all but winsdelln may be macros.
       These routines do not require a hardware line delete or insert
       feature in the terminal.  In fact, they will not use hardware line
       delete/insert unless idlok(..., TRUE) has been set on the current
       window.

SEE ALSO         top

       curses(3X)

COLOPHON         top

       This page is part of the ncurses (new curses) project.  Information
       about the project can be found at 
       ⟨https://www.gnu.org/software/ncurses/ncurses.html⟩.  If you have a
       bug report for this manual page, send it to
       bug-ncurses-request@gnu.org.  This page was obtained from the
       project's upstream Git mirror of the CVS repository 
       ⟨git://ncurses.scripts.mit.edu/ncurses.git⟩ on 2017-07-05.  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
       to man-pages@man7.org
                                                           curs_deleteln(3X)