| 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.
| “ | Ken Thompson has an automobile which he helped design. Unlike most automobiles, it has neither speedometer, nor gas gauge, nor any of the other numerous idiot lights which plague the modern driver. Rather, if the driver makes a mistake, a giant “?” lights up in the center of the dashboard. “The experienced driver,” says Thompson, “will usually know what's wrong.” | ” |