How to disable line buffering of input in xterm from program?

谁说我不能喝 提交于 2019-12-25 03:12:16

问题


Ie, how to get keystrokes send directly to my program without waiting for the user to press enter. Basicly I'm trying get something like curses's cbreak() call. (But I can't use curses due a couple of bugs/misfeatures that I haven't been able to work around.) This seems like something that should just be a trival escape sequence, but I haven't been able find anything.


回答1:


Lookup termios and the tcsetattr function.




回答2:


Isn't this called the "raw mode"? If so, this might help you.



来源:https://stackoverflow.com/questions/4506704/how-to-disable-line-buffering-of-input-in-xterm-from-program

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!