Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

winsch(3) [netbsd man page]

CURSES_INSERTCH(3)					   BSD Library Functions Manual 					CURSES_INSERTCH(3)

NAME
curses_insert, insch, winsch, mvinsch, mvwinsch -- curses insert characters routines LIBRARY
Curses Library (libcurses, -lcurses) SYNOPSIS
#include <curses.h> int insch(chtype ch); int winsch(WINDOW *win, chtype ch); int mvinsch(int y, int x, chtype ch); int mvwinsch(WINDOW *win, int y, int x, chtype ch); DESCRIPTION
These functions insert characters on stdscr or on the specified window. The insch() function inserts the character given in ch at the current cursor position on stdscr. The cursor is not advanced and wrapping is not performed. The winsch() function is the same as the insch() function, excepting that the character is inserted on the window specified by win. The mvinsch() and mvwinsch() functions are the same as the insch() and insch() functions, respectively, excepting that wmove() is called to move the cursor to the position specified by y, x before the character is inserted on the window. RETURN VALUES
Functions returning pointers will return NULL if an error is detected. The functions that return an int will return one of the following values: OK The function completed successfully. ERR An error occurred in the function. SEE ALSO
curses_addch(3), curses_cursor(3), curses_delch(3) STANDARDS
The NetBSD Curses library complies with the X/Open Curses specification, part of the Single Unix Specification. HISTORY
The Curses package appeared in 4.0BSD. BSD
February 5, 2006 BSD

Check Out this Related Man Page

curs_insch(3)						     Library Functions Manual						     curs_insch(3)

NAME
curs_insch, insch, winsch, mvinsch, mvwinsch - Insert a character before the character under the cursor in a Curses window SYNOPSIS
#include <curses.h> int insch( chtype ch ); int winsch( WINDOW *win, chtype ch ); int mvinsch( int y, int x, chtype ch ); int mvwinsch( WINDOW *win, int y, int x, chtype ch ); LIBRARY
Curses Library (libcurses) STANDARDS
Interfaces documented on this reference page conform to industry standards as follows: insch, winsch, mvinsch, mvwinsch: XCURSES4.2 Refer to the standards(5) reference page for more information about industry standards and associated tags. DESCRIPTION
These routines insert the character ch 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 cursor position does not change after moving to y, x, if specified. (This does not imply use of the hardware insert-character feature.) NOTES
The header file <curses.h> automatically includes the header file <stdio.h>. Note that insch, mvinsch, and mvwinsch may be macros. RETURN VALUES
All routines return the integer ERR upon failure and OK upon successful completion. SEE ALSO
Functions: curses(3) Others: standards(5) curs_insch(3)
Man Page