Next: , Previous: , Up: The basic curses library   [Contents][Index]


5.2.15 Deleting and inserting lines

Procedure: deleteln win

The deleteln procedure deletes 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.

It returns #f on failure and #t on success.

Procedure: insdelln win n

The insdelln routine, for positive n, inserts n lines into the specified window above the current line. The n bottom lines are lost. For negative n, it deletes 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.

It returns #f on failure and #t on success.

Procedure: insertln win

The insertln routine inserts a blank line above the current line and the bottom line is lost.

It returns #f on failure and #t on success.