insstr, insnstr, winsstr, winsnstr, mvinsstr, mvinsnstr, mvwinsstr, mvwinsnstr - insert string before cursor in a curses window
#include <curses.h> int insstr(const char *str); int insnstr(const char *str, int n); int winsstr(WINDOW *win, const char *str); int winsnstr(WINDOW *win, const char *str, int n); int mvinsstr(int y, int x, const char *str); int mvinsnstr(int y, int x, const char *str, int n); int mvwinsstr(WINDOW *win, int y, int x, const char *str); int mvwinsnstr(WINDOW *win, int y, int x, const char *str, int n);
These routines insert a character string (as many characters as will fit on the line) before the character under the cursor. All characters to the right of the cursor are shifted right with the possibility of the rightmost characters on the line being lost. The cursor position does not change (after moving to y, x, if specified). The functions with n as the last argument insert a leading substring of at most n characters. If n<=0, then the entire string is inserted. Special characters are handled as in addch.
All routines that return an integer return ERR upon failure and OK (SVr4 specifies only "an integer value other than ERR") upon successful completion, unless otherwise noted in the preceding routine descriptions. X/Open defines no error conditions. In this implementation, if the window parameter is null or the str parameter is null, an error is returned. Functions with a "mv" prefix first perform a cursor movement using wmove, and return an error if the position is outside the window, or if the window pointer is null.
Note that all but winsnstr may be macros.
These functions are described in the XSI Curses standard, Issue 4, which adds const qualifiers to the arguments. The Single Unix Specification, Version 2 states that insnstr and winsnstr perform wrapping. This is probably an error, since it makes this group of functions inconsistent. Also, no implementation of curses documents this inconsistency.
ncurses(3NCURSES), util(3NCURSES), clear(3NCURSES), inch(3NCURSES). insstr(3NCURSES)
More Linux Commands
glRasterPos2dv(3gl) - specify the raster position for pixel
The GL maintains a 3D position in window coordinates. This position, called the raster position, is used to position pixel and bitmap write operations. It is ma
libutempter(8) privileged helper program for utmp wtmp updat
utempter is a privileged helper program that writes utmp/wtmp entries for unprivileged programs. OPTIONS The following options are supported: -a slave-device-na
glColor4sv(3gl) - set the current color - Linux manual page
The GL stores both a current single-valued color index and a current four-valued RGBA color. glColor sets a new four-valued RGBA color. glColor has two major va
Tk_UnsetGrid(3) - control the grid for interactive resizing
Tk_SetGrid turns on gridded geometry management for tkwins toplevel window and specifies the geometry of the grid. Tk_SetGrid is typically invoked by a widget w
exp2f(3) - base-2 exponential function - Linux manual page
The exp2() function returns the value of 2 raised to the power of x. RETURN VALUE On success, these functions return the base-2 exponential value of x. For vari
Unicode::Collate::CJK::Big5(3pm) - weighting CJK Unified Ide
Unicode::Collate::CJK::Big5 provides weightBig5(), that is adequate for overrideCJK of Unicode::Collate and makes tailoring of CJK Unified Ideographs in the ord
pnmpsnr(1) - compute the difference between two images (the
This program is part of Netpbm(1) pnmpsnr reads two PBM, PGM, or PPM files, or PAM equivalents, as input and prints the magnitude of difference between the two
pmap_unset(3) - library routines for remote procedure calls
These routines allow C programs to make procedure calls on other machines across the network. First, the client calls a procedure to send a data packet to the s
Net::DBus::Exporter.3pm (Manual - Linux man page)..........
The Net::DBus::Exporter module is used to export methods and signals defined in an object to the message bus. Since Perl is a loosely typed language it is not p
insque(3) - insert/remove an item from a queue (Man Page)...
The insque() and remque() functions manipulate doubly-linked lists. Each element in the list is a structure of which the first two elements are a forward and a
XpQueryScreens(3x) - Queries an X Server to determine which
This request returns a non-NULL pointer to a list of screen pointers if one or more screens support the X Print Service Extension; otherwise it returns NULL. Xp
inl(2) - port I/O (System calls - Linux man page)...........
This family of functions is used to do low-level port input and output. The out* functions do port output, the in* functions do port input; the b-suffix functio