Is there any way to force displaying ACS variables from ncurses in terminal? On urxvt and text-mode everything displays well, but on other terminals (i tested on xfce4-terminal, xterm, gnome-terminal)there is always is problem. I tought I can do nothing with this, but I saw that in alsamixer everything displays properly. I loop up for this in alsamixer code and saw they are using exacly same method to display this characters, for examle
addch(ACS_RARROW);
is giving them this result while same command gives me this on same terminal.
On a terminal where your locale says to use UTF-8 (you can see this by the naming convention of values shown by the locale
command), you must do this:
initialize the locale before initscr
, e.g.,
setlocale(LC_ALL, "");
See the Initialization section of the ncurses manual, as well as the Line Graphics section of the addch
manual page.