摘要: 传送门: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. 阅读全文
posted @ 2014-02-20 19:49 瓦楞球 阅读(1772) 评论(0) 推荐(0) 编辑