1curs_insch(3X)                                                  curs_insch(3X)
2
3
4

NAME

6       insch,  winsch, mvinsch, mvwinsch - insert a character before cursor in
7       a curses window
8

SYNOPSIS

10       #include <curses.h>
11
12       int insch(chtype ch);
13       int winsch(WINDOW *win, chtype ch);
14
15       int mvinsch(int y, int x, chtype ch);
16       int mvwinsch(WINDOW *win, int y, int x, chtype ch);
17

DESCRIPTION

19       These routines insert the character ch before the character  under  the
20       cursor.   All characters to the right of the cursor are moved one space
21       to the right, with the possibility of the rightmost  character  on  the
22       line  being  lost.   The insertion operation does not change the cursor
23       position.
24

RETURN VALUE

26       All routines that return an integer return  ERR  upon  failure  and  OK
27       (SVr4 specifies only "an integer value other than ERR") upon successful
28       completion, unless otherwise noted in the  preceding  routine  descrip‐
29       tions.
30
31       Functions  with  a  “mv”  prefix  first perform a cursor movement using
32       wmove, and return an error if the position is outside the window, or if
33       the window pointer is null.
34

NOTES

36       These  routines do not necessarily imply use of a hardware insert char‐
37       acter feature.
38
39       Note that insch, mvinsch, and mvwinsch may be macros.
40

PORTABILITY

42       These functions are described in the XSI Curses standard, Issue 4.
43

SEE ALSO

45       curses(3X).
46
47       Comparable functions in the wide-character (ncursesw) library  are  de‐
48       scribed in curs_ins_wch(3X).
49
50
51
52                                                                curs_insch(3X)
Impressum