HPlogo MPE/iX Developer's Kit Reference Manual Volume 2: HP 3000 MPE/iX Computer Systems > Chapter 4 CURSES

keypad

» 

Technical documentation

Complete book in PDF
» Feedback

 » Table of Contents

 » Index

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

Feedback to webmaster