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.gzUpdate: add position as parameter to printAt
inout.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/inout.c b/inout.c index 87ebbc6..b11dd2a 100644 --- a/inout.c +++ b/inout.c @@ -43,7 +43,7 @@ void getLine(char* line, char* chars, int length, int wc){ } -void printChar(char* lines, int color, char c){ +void printChar(char* lines, int color, char c, struct position_s position){ printAt(position.x, position.y, lines[position.x-1], color); if (c != lines[position.x-1]) { printAt(position.x, position.y+1, c, RED); @@ -61,4 +61,4 @@ int readChar(){ char c = getc(stdin); tcsetattr(STDIN_FILENO, TCSANOW, &old_settings); return c; -} \ No newline at end of file +}