Sun Microsystems, Inc.
spacerspacer
spacer   www.sun.com docs.sun.com | | |  
spacer
black dot
   
A   B   C   D   E   F   G   H   I   J   K   L   M   N   O   P   Q   R   S   T   U   V   W   X   Y   Z
    
 
X/Open Curses Library Functionsinsdelln(3XCURSES)


NAME

 insdelln, winsdelln - insert/delete lines to/from the window

SYNOPSIS

 
#include <curses.h>
int insdelln(int n);
 int winsdelln(WINDOW *win, int n);

PARAMETERS

 
n
Is the number of lines to insert or delete (positive n inserts; negative n deletes).
win
Is a pointer to the window in which to insert or delete a line.

DESCRIPTION

 

The insdelln() and winsdelln() functions insert or delete blank lines in stdscr or win, respectively. When n is positive, n lines are added before the current line and the bottom n lines are lost; when n is negative, n lines are deleted starting with the current line, the remaining lines are moved up, and the bottom n lines are cleared. The position of the cursor does not change.

RETURN VALUES

 

On success, these functions return OK. Otherwise, they return ERR.

ERRORS

 

None.

SEE ALSO

 

deleteln(3XCURSES), insertln(3XCURSES)


SunOS 5.9Go To TopLast Changed 1 Jun 1996

 
      
      
Copyright 2002 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms.