attempting to print a unicode character
does not work
here is my code
#include <locale.h>
#include <ncurses.h>
int main() {
setlocale(LC_ALL, "");
initscr();
noecho();
start_color();
init_pair(0x26, COLOR_BLUE, COLOR_BLACK);
mvwaddch(stdscr, 0, 0, L'u263A');
getch();
endwin();
return 0;
}
compiled with clang -lncursesw main.c
expected output white ☺
actual output blue :
New contributor
Ben Miller is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.