How to disable line buffering of input in xterm fr

2019-08-20 07:26发布

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.

2条回答
做自己的国王
2楼-- · 2019-08-20 07:36

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

查看更多
Animai°情兽
3楼-- · 2019-08-20 07:54

Lookup termios and the tcsetattr function.

查看更多
登录 后发表回答