문제

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.

도움이 되었습니까?

해결책

Lookup termios and the tcsetattr function.

다른 팁

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

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top