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       int mvinsch(int y, int x, chtype ch);
15       int mvwinsch(WINDOW *win, int y, int x, chtype ch);
16

DESCRIPTION

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

RETURN VALUE

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

NOTES

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

PORTABILITY

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

SEE ALSO

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