How does one track KEY_ENTER
in ncurses? I have tried tracking \n
using getch()
, KEY_ENTER
, and raw()
, to no avail.
Asked
Active
Viewed 1,041 times
1 Answers
1
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

Adrián Pérez
- 2,186
- 4
- 21
- 33
-
Thanks. Also, for *NIX systems, checking for '\n' seems to work. – jhtong Feb 21 '13 at 14:15