typing_10_fingers git · main
10 finger typing trainer (CMake)
C 97.4% Markdown 2.6%git clone https://git.christianimmanuel.de/web-tools/typing_10_fingers.gitwget https://git.christianimmanuel.de/web-tools/typing_10_fingers/archive/typing_10_fingers.tar.gzreadChar() funktion hat nun grundfunktionalität unter windows.
inout.c | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/inout.c b/inout.c index 1a01136..50d0ee3 100644 --- a/inout.c +++ b/inout.c @@ -42,10 +42,9 @@ void printChar(wchar_t* lines, int color, wchar_t c, struct position_s position) } wchar_t readChar() { -#ifndef WINDOWS - struct termios old_settings, new_settings; - wchar_t c = L'\0'; + #ifndef WINDOWS + struct termios old_settings, new_settings; tcgetattr(STDIN_FILENO, &old_settings); new_settings = old_settings; @@ -56,11 +55,10 @@ wchar_t readChar() { c = fgetwc(stdin); tcsetattr(STDIN_FILENO, TCSANOW, &old_settings); - + #else //readChar für Windows + c=fgetwc(stdin); + #endif return c; -#else -//readChar für Windows -#endif }