Query: keypad
OS: ultrix
Section: 3cur
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
keypad(3cur) keypad(3cur) Name keypad - enable keypad Syntax #include <cursesX.h> int keypad(win, bf) WINDOW *win; bool bf; Description This option enables the keypad of the user's terminal. If the keypad is enabled, pressing a function key (such as an arrow key) will return a single value representing the function key. For example, pressing the left arrow key results in the value KEY_LEFT being returned.. For more information see the Guide to X/Open Curses Screen-Handling. (R) The routine is used to return the character. If the keypad is disabled, does not treat function keys as special keys and the program interprets the escape sequences itself. Keypad layout is terminal dependent; some terminals do not even have a keypad. Return Values The function returns OK on success and ERR on error. See Also getch(3cur) Guide to X/Open Curses Screen-Handling keypad(3cur)