Nimbin[12]?Web & Tools / typing_10_fingers / commits / cfa7e5e

typing_10_fingers git · main

10 finger typing trainer (CMake)

typing terminal c cmake · first commit 2024-02-26 · last commit 2024-03-16 (2 years ago) · synced 3 days ago · upstream: git.ide3.de/chfis005/typing_10_fingers

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.gz

Libraries in header& deklaration von position(l.52)

Vitali Krieger · 2024-02-27 12:53 · cfa7e5ecec63ccc5dd08c357123fb0a878e92b37

 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];