会员
周边
众包
新闻
博问
闪存
赞助商
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
wan_ghuan
博客园
首页
新随笔
新文章
联系
管理
订阅
2016年8月22日
linux getch()实现
摘要: #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)
编辑
公告