fixed unicode input on windows

This commit is contained in:
2026-01-09 11:12:34 +05:00
parent 1ce7090bd6
commit d417b5bbd5
2 changed files with 1 additions and 5 deletions

View File

@@ -113,7 +113,7 @@ void tim_read_event(i32 timeout_ms) {
// received input
INPUT_RECORD rec = {0};
DWORD n = 0;
ReadConsoleInput(h, &rec, 1, &n);
ReadConsoleInputW(h, &rec, 1, &n);
switch (rec.EventType) {
case KEY_EVENT: {