摘要:
传送门:http://cboard.cprogramming.com/c-programming/63166-kbhit-linux.html#include #include #include #include #include #include int kbhit(void){ struct termios oldt, newt; int ch; int oldf; tcgetattr(STDIN_FILENO, &oldt); newt = oldt; newt.c_lflag &= ~(ICANON | ECHO); tcsetattr(STDIN_FILENO, T. 阅读全文