Nimbin2git.christianimmanuel.de / Tools / typing_10_fingers / inout.h

typing_10_fingers git · main

git clone https://git.christianimmanuel.de/tools/typing_10_fingers.gitwget https://git.christianimmanuel.de/tools/typing_10_fingers/archive/typing_10_fingers.tar.gz
inout.h 702 B · 36 lines raw
#ifndef TYPING_10_FINGERS_INOUT_H
#define TYPING_10_FINGERS_INOUT_H
#include <wchar.h>
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <string.h>
#include <time.h>
#include <locale.h>

//detect Windows OS
#ifdef WIN64
#define WINDOWS
#else
#ifdef WIN32
#define WINDOWS
#endif
#endif

//OS specific library
#ifdef WINDOWS
#include <windows.h>
#else
#include <termios.h>
#include <sys/ioctl.h> // window size
#endif

enum color_b {RED, GREEN};
struct position_s {int x; int y;};

void printAt(int, int, wchar_t, int);
void getLine(wchar_t* , wchar_t*, int, int);
wchar_t readChar(void);
void printChar(wchar_t* , int , wchar_t, struct position_s);

#endif //TYPING_10_FINGERS_INOUT_H