| Main index | Section 3 | Options |
#include <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);
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 wchar_t characters. If n is less than zero, the entire string is inserted (stopping on a L'\0' character).
Special characters are handled as in wadd_wch(3X).
X/Open Curses does not specify any error conditions. This implementation returns an error
| &#187; | if the win parameter is null or |
| &#187; | if the wstr parameter is null or |
| &#187; | if the wins_wch function returns an error. |
If the first character in the string is a non-spacing character, these functions will fail. X/Open Curses does not define what will happen if a non-spacing character follows a control character.
X/Open states that the entire string is inserted if n is less than 1. This is probably an error, because it is inconsistent with other functions, and differs from the X/Open implementation on Solaris.
curses(3X), curs_ins_wch(3X), curs_in_wch(3X)
| 2024-04-20 | curs_ins_wstr (3X) | ncurses 6.5 |
| Main index | Section 3 | Options |
Please direct any comments about this manual page service to Ben Bullock. Privacy policy.
| “ | The wonderful thing about standards is that there are so many of them to choose from. | ” |
| — Grace Murray Hopper | ||