Is there a way for me to check for arrow/function keys from user input. (ncurses?).
Thanks
Skarr
Is there a way for me to check for arrow/function keys from user input. (ncurses?).
Thanks
Skarr
I like traffic lights. I like traffic lights. I like traffic lights, but only when they're green.
Yes, there is a way with ncurses.
after that you can use KEY_UP for up arrow KEY_DOWN for down, etc.Code:keypad(stdscr, TRUE)
for function keys I think it is KEY_F(n) not sure though.
more info: man keypad.
and/or
http://en.tldp.org/HOWTO/NCURSES-Programming-HOWTO/
Uh, how do I check for the escape key?
Last edited by Skarr; 02-12-2003 at 12:42 PM.
I like traffic lights. I like traffic lights. I like traffic lights, but only when they're green.