From b92b41c0f3db0eddce8ffa24f3e2ce593553c76d Mon Sep 17 00:00:00 2001 From: MuedeHydra Date: Tue, 10 Dec 2024 17:37:47 +0100 Subject: [PATCH] windows fix --- src/main.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/main.c b/src/main.c index fab8232..21be99d 100644 --- a/src/main.c +++ b/src/main.c @@ -9,7 +9,6 @@ #elif _WIN32 #include #include - system("chcp 65001 >null"); #endif // import sub programme @@ -212,6 +211,11 @@ int main(int argc, char **argv){ int line = 0; bool run = true; + // umlaute für windows + #ifdef _WIN32 + system("chcp 65001 >null"); + #endif + // neues terminal öffnen (nur linux) #ifdef __linux__ system("tput smcup");