1curs_insch(3CURSES)        Curses Library Functions        curs_insch(3CURSES)
2
3
4

NAME

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

SYNOPSIS

10       cc [ flag ... ] file... -lcurses [ library ... ]
11       #include <curses.h>
12
13       int insch(chtype ch);
14
15
16       int winsch(WINDOW *win, chtype ch);
17
18
19       int mvinsch(int y, int x, chtype ch);
20
21
22       int mvwinsch(WINDOW *win, int y, int x, chtype ch);
23
24

DESCRIPTION

26       With these routines, the character ch is inserted before the  character
27       under  the  cursor. All characters to the right of the cursor are moved
28       one space to the right, with the possibility of the rightmost character
29       on the line being lost. The cursor position does not change (after mov‐
30       ing to y, x, if specified). (This does not imply use  of  the  hardware
31       insert character feature.)
32

RETURN VALUES

34       All  routines  return the integer ERR upon failure and an integer value
35       other than ERR upon successful completion.
36

ATTRIBUTES

38       See attributes(5) for descriptions of the following attributes:
39
40
41
42
43       ┌─────────────────────────────┬─────────────────────────────┐
44       │      ATTRIBUTE TYPE         │      ATTRIBUTE VALUE        │
45       ├─────────────────────────────┼─────────────────────────────┤
46       │MT-Level                     │Unsafe                       │
47       └─────────────────────────────┴─────────────────────────────┘
48

SEE ALSO

50       curses(3CURSES), attributes(5)
51

NOTES

53       The header <curses.h> automatically includes the headers  <stdio.h> and
54       <unctrl.h>.
55
56
57       Note that insch(), mvinsch(), and mvwinsch() may be macros.
58
59
60
61SunOS 5.11                        31 Dec 1996              curs_insch(3CURSES)
Impressum