| Main index | Section 3 | Options |
#include <curses.h>int inwstr(wchar_t *wstr); int innwstr(wchar_t *wstr, int n); int winwstr(WINDOW *win, wchar_t *wstr); int winnwstr(WINDOW *win, wchar_t *wstr, int n);
int mvinwstr(int y, int x, wchar_t *wstr); int mvinnwstr(int y, int x, wchar_t *wstr, int n); int mvwinwstr(WINDOW *win, int y, int x, wchar_t *wstr); int mvwinnwstr(WINDOW *win, int y, int x, wchar_t *wstr, int n);
The four functions with n as the last argument return a leading substring at most n characters long (exclusive of the trailing NUL). Transfer stops at the end of the current line, or when n characters have been stored at the location referenced by wstr.
If the size n is not large enough to store a complete complex character, an error is generated.
X/Open defines no 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 no characters could be read. |
Each cell in the window holds a complex character (a spacing character and zero or more non-spacing characters) together with attributes and color. These functions store only the wide characters, ignoring attributes and color. Use in_wchstr to return the complex characters from a window.
Reading a line that overflows the array pointed to by wstr with inwstr, mvinwstr, mvwinwstr or winwstr causes undefined results. Therefore, the use of innwstr, mvinnwstr, mvwinnwstr, or winnwstr is recommended.
| 2024-04-20 | curs_inwstr (3X) | ncurses 6.5 |
| Main index | Section 3 | Options |
Please direct any comments about this manual page service to Ben Bullock. Privacy policy.
| “ | A typical Unix /bin or /usr/bin directory contains a hundred different kinds of programs, written by dozens of egotistical programmers, each with its own syntax, operating paradigm, rules of use ... strategies for specifying options, and different sets of constraints. | ” |
| — The Unix Haters' handbook | ||