NCURSES keypad
hi
Please tell me that in NCURSES when i use function
keypad(), i can use KEY_UP,KEY_DOWN,KEYF0..and so on.
values of these macros are there in ncurses.h.
now my problem is that, when i press a key and match corresponding ascii value from ncurses.h, it does not match.
for eg. KEY_UP has the value 403 in ncurses.h
but i get the value 259
similarly KEY_DOWN has the value 402 in ncurses.h
but i get the value 258..
i dont understand the matter
all suggestions are welcome
|