I recently started programming with ncurses on Linux.
Through experimenting with it, I found, that if the terminal doesn't support specific characters like the checkerboard pattern it prints "#" instead.
I thought, that ncurses is capable of telling whether a terminal supports unicode.
In case the terminal supports unicode I want to print the "Snowman_symbol" (\u2603) if not the character 'P'.
like this
1 2 3 4 5
if(TerimnalSupportsUnicode()){ //is there anything like the function inside the if-condition
mvprintw(2, 2, "\u2603");
}else{
mvprintw(2, 2, "P");
}
I already used various search engines, but I didn't find any answer.