int kbhit()
{
- struct termios term;
- tcgetattr(0, &term);
-
- struct termios term2 = term;
- term2.c_lflag &= ~ICANON;
- tcsetattr(0, TCSANOW, &term2);
-
- int byteswaiting;
- ioctl(0, FIONREAD, &byteswaiting);
-
- tcsetattr(0, TCSANOW, &term);
-
- return byteswaiting > 0;
+ return 0;
}
extern int mouse_fd;