2016年9月6日
摘要: #include #include //终端操作头文件 char getch(void){ struct termios tm, tm_old; int fd = 0, ch; if (tcgetattr(fd, &tm) < 0) { //保存现在的终端设置 return -1; } tm_old = tm; ... 阅读全文
posted @ 2016-09-06 20:44 wan_ghuan 阅读(690) 评论(0) 推荐(0) 编辑