added unicode support

This commit is contained in:
nova
2025-07-12 15:00:34 +02:00
parent d96046ac44
commit c9c00f4930
4 changed files with 48 additions and 69 deletions

View File

@@ -35,7 +35,7 @@ void window_top(WINDOW *win){
if (pthread_mutex_trylock(&mutex_top) == 0) {
wattron(win, COLOR_PAIR(COLOR_PATH));
if (*top_buffer != ' ') { /*printing ' ' (standard initialized value, see threading_init) makes valgrind throw a fuss*/
mvwprintw(win, 0, 0, "%s", top_buffer);
mvwaddstr(win, 0, 0, top_buffer);
}
wattroff(win, COLOR_PAIR(COLOR_PATH));
pthread_mutex_unlock(&mutex_top);