cursinswstr(3X) cursinswstr(3X)
NAME
inswstr, insnwstr, winswstr, winsnwstr, mvinswstr, mvinsnwstr,
mvwinswstr, mvwinsnwstr - insert a wide-character string into a
curses window
SYNOPSIS
##include <>
int inswstr(const wchart **wstr);
int insnwstr(const wchart **wstr,, int n);;
int winswstr(WINDOW **win,, const wchart **wstr);;
int winsnwstr(WINDOW **win,, const wchart **wstr,, int n);;
int mvinswstr(int y,, int x,, const wchart **wstr);;
int mvinsnwstr(int y,, int x,, const wchart **wstr,, int n);;
int mvwinswstr(WINDOW **win,, int y,, int x,, const wchart **wstr);;
int mvwinsnwstr(WINDOW **win,, int y,, int x,, const wchart **wstr,, int n);;
DESCRIPTION
These routines insert a wchart character string (as many characters as
will fit on the line) before the character under the cursor. All char-
acters to the right of the cursor are shifted right, with the possibil-
ity 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 wchart 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 winwch 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.
NOTES
Note that all but winsnwstr 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 non-
spacing character follows a control character.
RETURN VALUES
Upon successful completion, these functions return OK. Otherwise, they
return ER.
SEE ALSO
curses(3X), cursinsstr(3X), cursinwch(3X), cursinswch(3X).
cursinswstr(3X)
|