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.gzLibraries in header& deklaration von position(l.52)
main.c | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) diff --git a/main.c b/main.c index e534f57..ab74346 100644 --- a/main.c +++ b/main.c @@ -1,12 +1,4 @@ -#include <stdio.h> -#include <stdlib.h> -#include <unistd.h> -#include <termios.h> -#include <sys/ioctl.h> // window size -#include <string.h> -#include <time.h> -#include <locale.h> -#include "inout.h" +#include "inout.h"//other libraries are there and depend on OS void sysClear() { #ifdef WINDOWS @@ -40,8 +32,7 @@ wchar_t right_t[] = { L'u', L'i', L'o', L'p', L'ü', L'z', L'+', L'\0' }; wchar_t right_b[] = { L'm', L',', L'.', L'-', L'n', L'\0' }; - -int main() { +int main(){ setlocale(LC_ALL, ""); #ifdef WINDOWS @@ -58,7 +49,7 @@ int main() { window.cols = w.ws_col; window.rows = w.ws_row; #endif - + struct position_s position = {1, 1}; int chars_max = 15; wchar_t lines[chars_max];