HPlogo MPE/iX Developer's Kit Reference Manual Volume 2: HP 3000 MPE/iX Computer Systems > Chapter 4 CURSES

insdelln winsdelln

» 

Technical documentation

Complete book in PDF
» Feedback

 » Table of Contents

 » Index

The insdelln and winsdelln routines are used to insert or delete lines to or from the window.

Syntax

   #include <curses.h>



   int insdelln(int n);

   int winsdelln(WINDOW *win, int n);

Parameters

win

A pointer to the window in which to insert or delete a line.

n

The number of lines to insert or delete (positive n inserts; negative n deletes).

Return Values

OK

Successful completion.

ERR

An error occurred.

Description

The insdelln() and winsdelln() routines insert or delete blank lines in stdscr or win, respectively.

When n is positive, n lines are added above the current line, and the bottom n lines are cleared; when n is negative, n lines are deleted starting with the current line, and the remaining lines are moved up. The bottom n lines are cleared. The position of the cursor does not change.

Implementation Considerations

UNIX System V implementation

See Also

wdeleteln(), winsertln()

Portability

UNIX System V

Feedback to webmaster