jhtong
jhtong

Reputation: 1589

Tracking KEY_ENTER in Ncurses

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

Upvotes: 0

Views: 1083

Answers (1)

Adrián Pérez
Adrián Pérez

Reputation: 2216

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

Upvotes: 1

Related Questions