2016年8月22日
摘要: #include int getch(void){ struct termios tm, tm_old; int fd = 0, ch; if (tcgetattr(fd, &tm) < 0) {//保存现在的终端设置 return -1; } tm_old = tm; cfmakeraw(&tm);//更改终端设置为原始... 阅读全文
posted @ 2016-08-22 18:30 wan_ghuan 阅读(1100) 评论(0) 推荐(0) 编辑