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

2
main.c
View File

@@ -4,6 +4,7 @@
#include <stdlib.h>
#include <stdio.h>
#include <sys/sysinfo.h>
#include <locale.h>
#include "threading.h"
#include "window.h"
#include "defines.h"
@@ -169,6 +170,7 @@ void render_pass(){
/*this function exists for things done at startup (initialization, reading config, etc)*/
void init() {
setlocale(LC_ALL, "");
initscr(); /* start ncurses */
noecho(); /* hide keyboard input */
timeout(0); /* blocking timeout of getch() */