@ -91,6 +91,10 @@ void Pausieren(){
//khbit und getch aus dem Internet
/**checks if there was a console input
*returns int, no parameter
*/
int kbhit(void){
struct termios oldt, newt;
int ch;
@ -117,6 +121,10 @@ int kbhit(void){
return 0;
}
/**returns the char from console
*returns char, no parameter
char getch(void){
char c;
system("stty raw");