Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ keypad(3X) — Reliant UNIX 5.44c4

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

curses(3X)

curses(5)

keypad(3X)                                                       keypad(3X)

NAME
     keypad - enable/disable abbreviation of function keys

SYNOPSIS
     cc [flag ...] file ... -lcurses [library ...]

     #include <curses.h>

     int keypad(WINDOW *win, bool bf);

DESCRIPTION
     The keypad() 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 key-
     board input.

     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 com-
     mand to the terminal before an affected input function tries to read
     any characters from that terminal.

RETURN VALUE
     Upon successful completion, keypad() returns OK. Otherwise, it returns
     ERR.

ERRORS
     No errors are defined.

SEE ALSO
     curses(3X), curses(5).






















Page 1                       Reliant UNIX 5.44                Printed 11/98

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026