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.
All routines return the integer ERR upon failure and an OK (SVr4
specifies only "an integer value other than ERR") upon successful
X/Open defines no error conditions. In this implementation, if
the window parameter is null, an error is returned.
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
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
firstname.lastname@example.org. This page was obtained from the
project's upstream Git mirror of the CVS repository
⟨git://ncurses.scripts.mit.edu/ncurses.git⟩ on 2021-08-27. (At
that time, the date of the most recent commit that was found in
the repository was 2021-05-23.) 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