문제

How does one track KEY_ENTER in ncurses? I have tried tracking \n using getch(), KEY_ENTER, and raw(), to no avail.

도움이 되었습니까?

해결책

Seems like to use those key abbreviations like KEY_ENTER, you have to make a call to:

keypad(win, true);

before using them. Take a look at this: http://osr600doc.sco.com/en/man/html.CURSES/keypad.CURSES.html

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