HP 3000 Manuals

keypad [ MPE/iX Developer's Kit Reference Manual Volume II ] MPE/iX 5.0 Documentation


MPE/iX Developer's Kit Reference Manual Volume II

keypad 

The keypad routine is used to enable keypad handling.

Syntax 

     #include <curses.h>

     int keypad(WINDOW *win, bool bf);

Parameters 

win                   A pointer to the window in which to enable keypad
                      handling.

bf                    A Boolean expression.

Return Values 

OK                    Successful completion.

ERR                   An error occurred.

Description 

If bf is TRUE, keypad() 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,
wgetch() returns a single value, KEY_RIGHT, that represents the function
key; otherwise, CURSES handles the special keys as normal text.

See wgetch() for a list of tokens for function keys that are returned by
getch().

Implementation Considerations 

Identical to XPG/3

See Also 

wgetch()

Portability 

HP-UX, UNIX System V, XPG/3



MPE/iX 5.0 Documentation