2 <BODY BGCOLOR="#99ccbb" TEXT="#000000" LINK="#4060b0" VLINK="#000080" ALINK="#ff4040">
4 <STRONG>insch</STRONG>, <STRONG>winsch</STRONG>, <STRONG>mvinsch</STRONG>, <STRONG>mvwinsch</STRONG> - insert a character
5 before cursor in a <STRONG>curses</STRONG> window
10 <STRONG>#include</STRONG> <STRONG><curses.h></STRONG>
12 <STRONG>int</STRONG> <STRONG>insch(chtype</STRONG> <STRONG>ch);</STRONG>
13 <STRONG>int</STRONG> <STRONG>winsch(WINDOW</STRONG> <STRONG>*win,</STRONG> <STRONG>chtype</STRONG> <STRONG>ch);</STRONG>
14 <STRONG>int</STRONG> <STRONG>mvinsch(int</STRONG> <STRONG>y,</STRONG> <STRONG>int</STRONG> <STRONG>x,</STRONG> <STRONG>chtype</STRONG> <STRONG>ch);</STRONG>
15 <STRONG>int</STRONG> <STRONG>mvwinsch(WINDOW</STRONG> <STRONG>*win,</STRONG> <STRONG>int</STRONG> <STRONG>y,</STRONG> <STRONG>int</STRONG> <STRONG>x,</STRONG> <STRONG>chtype</STRONG> <STRONG>ch);</STRONG>
19 <H2>DESCRIPTION</H2><PRE>
20 These routines, insert the character <EM>ch</EM> before the charac-
21 ter under the cursor. All characters to the right of the
22 cursor are moved one space to the right, with the possi-
23 bility of the rightmost character on the line being lost.
24 The insertion operation does not change the cursor posi-
29 <H2>RETURN VALUE</H2><PRE>
30 All routines that return an integer return <STRONG>ERR</STRONG> upon fail-
31 ure and OK (SVr4 specifies only "an integer value other
32 than <STRONG>ERR</STRONG>") upon successful completion, unless otherwise
33 noted in the preceding routine descriptions.
38 These routines do not necessarily imply use of a hardware
39 insert character feature.
41 Note that <STRONG>insch</STRONG>, <STRONG>mvinsch</STRONG>, and <STRONG>mvwinsch</STRONG> may be macros.
45 <H2>PORTABILITY</H2><PRE>
46 These functions are described in the XSI Curses standard,
51 <H2>SEE ALSO</H2><PRE>
52 <STRONG><A HREF="ncurses.3x.html">curses(3X)</A></STRONG>.