Sortix main manual
This manual documents Sortix main. You can instead view this document in the latest official manual.
NAME
curses_cchar, getcchar, setcchar — curses representation of wide charactersLIBRARY
Curses Library (libcurses, -lcurses)SYNOPSIS
#include <curses.h>getcchar(const cchar_t *wcval, wchar_t *wch, attr_t *attrs, short *color_pair, void *opts);
setcchar(cchar_t *wcval, const wchar_t *wch, const attr_t attrs, short color_pair, const void *opts);
DESCRIPTION
Curses uses the opaque type cchar_t to represent a string of wide characters up to an implementation-dependent length along with a color pair and zero or more attributes. A null cchar_t object is an object that references an empty wide-character string. Arrays of cchar_t objects are terminated by a null cchar_t object.RETURN VALUES
getchar called with null wch returns the the number of wide characters referenced by wcval, including the null terminator.- OK
- The function completed successfully.
- ERR
- An error occurred in the function.