I am trying to in_wch a wide-character (cchar_t), change the attribute and add_wch that to the screen again in the same position. But I am not sure what I am doing wrong, because it's not behaving properly.
I have included a sample program which printw()s some multi-column characters (the meaning of which I don't know, btw), in_wch one of them, and add_wch that without changing anything in a different screen position. The output of printw is correct, but the output of add_wch is different (incorrect). The code is below: