curs_ins_wch(3x)

curs_ins_wch3x

Insert a complex character and rendition into a window

Usage

#include <curses.h>

int ins_wch(const cchar_t *wch);
int wins_wch(WINDOW *win, const cchar_t *wch);
int mvins_wch(int y, int x, const cchar_t *wch);
int mvwins_wch(WINDOW *win, int y, int x, const cchar_t *wch);

Overview

These routines, insert the complex character wch with rendition before the character under the cursor. All characters to the right of the cursor are moved one space to the right, with the possibility of the rightmost character on the line being lost. The insertion operation does not change the cursor position.

Return value

If successful, these functions return OK. If not, they return ERR.

Functions with a "mv" prefix first perform a cursor movement using wmove, and return an error if the position is outside the window, or if the window pointer is null.

Errors

No errors are defined.

Releases

135 releases since Mac OS X 10.4; the text changed 2 times.

  1. 10.4–10.5.8
  2. 10.6–13.5
  3. 14.0–26.5

From ncurses 79 in macOS 26.5. Parsed by carta from the page's man source.