Currently I try to simulate matrix rain using C and NCURSES. I need to print multibyte characters to the program window using NCURSES. I have function that return random chars 12784-12799 range from Unicode. These are Japanese characters converted from hex to decimal.
Then I use this function to print the characters with different location:
mvwaddch(mainwin, j, i*2, col-rows[i]);
col-rows[i] contains the randombly created number.
This approach does not work for now, program print ^@ ^A ^e ^B etc, instead of Japanese characters. I believe I use a wrong function and mvwaddch does not accept multibyte characters. If so, please let me know which NCURSES function could be used for this purpose.