如何从程序禁用输入行缓冲中的xterm? [英] How to disable line buffering of input in xterm from program?
本文介绍了如何从程序禁用输入行缓冲中的xterm?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
也就是说,如何让击键直接发送到我的程序,而无需等待用户preSS进入。 Basicly我试图得到类似诅咒的 CBREAK()
电话。 (但我不能用咒骂,由于一对夫妇的错误/不合理的特性,我一直没能解决的。)这似乎是一件应该只是一个繁琐的转义序列,但我一直没能发现任何东西。
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.
推荐答案
查找的termios
和 tcsetattr
功能。
这篇关于如何从程序禁用输入行缓冲中的xterm?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文