Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ delch(3) — Digital UNIX 3.2c

Media Vault

Software Library

Restoration Projects

Artifacts Sought

delch(3)  —  Subroutines

NAME

delch, wdelch, mvdelch, mvwdelch − Remove a character from a curses window

LIBRARY

The curses library (libcurses.so, libcurses.a)

SYNOPSIS

#include <curses.h>
 
int delch();
 
int wdelch(win)
    WINDOW ∗win;
 
int mvdelch(y, x)
    int y, x;
 
int mvwdelch(win, y, x,)
    WINDOW ∗win;
    int y, x;

PARAMETERS

winSpecifies a curses window. If not specified, the window is the default window stdscr. 

y, xSpecifies the line (y) and column (x) coordinates of the target position on the window.  If coordinates are not specified, the target position is the current position of the logical cursor. 

DESCRIPTION

The delch routine deletes the character under the cursor in the default window.  All characters to the right of the deletion on the same line move to the left one position, and the last character on the line is filled with a blank.  The cursor position does not change. 

The wdelch routine deletes the character under the cursor in the specified window win.  All characters to the right of the deletion on the same line move to the left one position, and the last character on the line is filled with a blank.  The cursor position does not change. 

The mvdelch routine moves the cursor to the specified position (y, x) in the default window and deletes the character found at this location.  All characters to the right on the same line move to the left one position, and the last character on the line is filled with a blank.  The cursor position does not change. 

The mvwdelch routine moves the cursor to the specified position (y, x) in the specified window win, then deletes the character found at this location.  All characters to the right of the deletion on the same line move to the left one position, and the last character on the line is filled with a blank.  The cursor position does not change. 

All the routines can handle wchar_t characters as well. 

The delch, mvdelch, and mvwdelch routines are macros. 

RETURN VALUES

The delch, mvdelch, mvwdelch, and wdelch functions return OK on success and ERR on error. 

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026