ins_wstr, ins_nwstr, wins_wstr, wins_nwstr, mvins_wstr, mvins_nwstr, mvwins_wstr, mvwins_nwstr − insert a wide-character string into a curses window


#include <ncurses/curses.h>

int ins_wstr(const wchar_t *wstr);
int ins_nwstr(const wchar_t *
wstr, int n);
int wins_wstr(WINDOW *
win, const wchar_t *wstr);
int wins_nwstr(WINDOW *
win, const wchar_t *wstr, int n);
int mvins_wstr(int
y, int x, const wchar_t *wstr);
int mvins_nwstr(int
y, int x, const wchar_t *wstr, int n);
int mvwins_wstr(WINDOW *
win, int y, int x, const wchar_t *wstr);
int mvwins_nwstr(WINDOW *
win, int y, int x, const wchar_t *wstr, int n);


These routines insert a wchar_t 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. No wrapping is performed. The cursor position does not change (after moving to y, x, if specified). The four routines with n as the last argument insert a leading substring of at most n wchar_t characters. If n is less than 1, the entire string is inserted.

If a character in wstr is a tab, newline, carriage return or backspace, the cursor is moved appropriately within the window. A newline also does a clrtoeol before moving. Tabs are considered to be at every eighth column. If a character in wstr is another control character, it is drawn in the ^X notation. Calling win_wch after adding a control character (and moving to it, if necessary) does not return the control character, but instead returns a character in the ^-representation of the control character.


Note that all but wins_nwstr may be macros.

If the first character in the string is a nonspacing character, these functions will fail. XSI does not define what will happen if a nonspacing character follows a control character.


Upon successful completion, these functions return OK. Otherwise, they return ERR.

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.


ncurses(3NCURSES), insstr(3NCURSES), in_wch(3NCURSES), ins_wch(3NCURSES).

More Linux Commands

gnutls_cipher_decrypt(3) - API function - Linux manual page
This function will decrypt the given data using the algorithm specified by the context. RETURNS Zero or a negative error code on error. SINCE 2.10.0 REPORTING B

Tcl_GetChannelNames(3) - buffered I/O facilities using chann
The Tcl channel mechanism provides a device-independent and platform-independent mechanism for performing buffered input and output operations on a variety of f

smi_module(3) - SMI module information routines (Man Page)
These functions retrieve various meta information on MIB modules. Other functions to retrieve the definitions within a module are documented in smi_type(3), smi

SDL_WasInit(3) - Check which subsystems are initialized.....
SDL_WasInit allows you to see which SDL subsytems have been initialized. flags is a bitwise ORd combination of the subsystems you wish to check (see SDL_Init fo

gvfs-set-attribute(1) Set file attributes - Linux man page
gvfs-set-attribute allows to set a file attribute on a file. File attributes can be specified with their gvfs name, e.g. standard::icon. Note that not all file

ferror_unlocked(3) - nonlocking stdio functions (Man Page)
Each of these functions has the same behavior as its counterpart without the _unlocked suffix, except that they do not use locking (they do not set locks themse

XtOffsetOf(3) - determine the byte offset or number of array
The XtOffset macro is usually used to determine the offset of various resource fields from the beginning of a widget and can be used at compile time in static i

glutReshapeFunc(3) - sets the reshape callback for the curre
glutReshapeFunc sets the reshape callback for the current window. The reshape callback is triggered when a window is reshaped. A reshape callback is also trigge

XtRemoveEventTypeHandler(3) - extension event handling......
The XtInsertEventTypeHandler function registers a procedure with the dispatch mechanism that is to be called when an event that matches the specified event_type

uudecode(1) - encode a binary file, or decode its representa
Uuencode and uudecode are used to transmit binary files over channels that support only simple ASCII data. Uuencode reads file (or by default the standard input

Tcl_FSJoinPath(3) - procedures to interact with any filesyst
There are several reasons for calling the Tcl_FS API functions (e.g. Tcl_FSAccess and Tcl_FSStat) rather than calling system level functions like access and sta

nagiosstats(8) - report statistics information from the Nagi
nagiosstats is a program designed to provide information on the running Nagios system. It can provide a brief summary of information, or it can be used to expor

We can't live, work or learn in freedom unless the software we use is free.