I'm writing a simple chat program and i'm using conio's _kbhit() with _getwch() to get input from user.
The problem is when I enter altgr combinations (like altgr-s for letter 'ś' in Polish programmers keyboard) the terminal window becomes invisible, but the process is still running (responds to sockets and is visible in task manager). I'm setting the locale to ".UTF8"
Due to my testing I'm sure it's the problem with _kbhit() and not _getwch().
I don't want to switch to PDCurses because I use the windows api and i don't think mixing is a good idea.
I'd maybe go with PeekConsoleInputW() and ReadConsoleInput() but when I tried them the program has noticeable input lag and there was still problems with polish letters
Anyone had that problem before, how did you sort it out? Is there a kbhit() alternative?