keypad — enable/disable abbreviation of function keys
int keypad(WINDOW *win, bool bf);
function controls keypad translation.
If bf is TRUE, keypad translation is turned on.
If bf is FALSE, keypad translation is turned off.
The initial state is FALSE.
This function affects the behaviour of any function that provides
If the terminal in use requires a command to enable it to transmit distinctive
codes when a function key is pressed, then after keypad translation is first
enabled, the implementation transmits this command to the terminal before an
affected input function tries to read any characters from that terminal.
Upon successful completion,
returns OK. Otherwise, it returns ERR.
No errors are defined.
First released in X/Open Curses, Issue 2.
X/Open Curses, Issue 4
The entry is rewritten for clarity.