---
name: "curs_ins_wch"
section: "3x"
platform: "macos"
package: "ncurses"
version: "79"
release: "macOS 26.5"
platforms: ["linux", "macos"]
url: "https://new.carta.tech/curs_ins_wch/3x"
---

# curs\_ins\_wch(3x)

insert a complex character and rendition into a window

## NAME

**ins\_wch**, **mvins\_wch**, **mvwins\_wch**, **wins\_wch** - insert a complex character and rendition into a window

## SYNOPSIS

\#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***);**

## DESCRIPTION

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.

## SEE ALSO

**curses**(3X), **curs\_insch**(3X).
