I\'m attempting to add wchar_t Unicode characters to an ncurses display in C.
I have an array:
wchar_t characters[]={L\'\\uE030\', L\'\\uE029\'}; //
cchar_t is defined as:
cchar_t
typedef struct { attr_t attr; wchar_t chars[CCHARW_MAX]; } cchar_t;
so you might try:
int add_wchar(int c) { cchar_t t = { 0, // .attr {c, 0} // not sure how .chars works, so best guess }; return add_wch(t); }
not at all tested, but should work.