NAME | SYNOPSIS | PARAMETERS | DESCRIPTION | RETURN VALUES | ERRORS | SEE ALSO
#include <curses.h>int keypad(WINDOW *win, bool bf);
If bf is TRUE, getch(3XC) handles special keys from the keyboard on the terminal associated with win as single values instead of character sequences. For example, if the user presses the right arrow key, getch() returns a single value, KEY_RIGHT, that represents the function key; otherwise, X/Open Curses handles the special keys as normal text.
See getch() for a list of tokens for function keys that are returned by getch().
On success, the keypad() function returns OK. Otherwise, it returns ERR.
None.
NAME | SYNOPSIS | PARAMETERS | DESCRIPTION | RETURN VALUES | ERRORS | SEE ALSO