keyok(3ncurses)


NAME

   keyok - enable or disable a keycode

SYNOPSIS

   #include <curses.h>

   int keyok(int keycode, bool enable);

DESCRIPTION

   This  is an extension to the curses library.  It permits an application
   to disable specific keycodes, rather than use the  keypad  function  to
   disable all keycodes.  Keys that have been disabled can be re-enabled.

RETURN VALUE

   The  keycode  must  be  greater than zero, else ERR is returned.  If it
   does not correspond to a defined key, then ERR  is  returned.   If  the
   enable  parameter  is  true,  then the key must have been disabled, and
   vice versa.  Otherwise, the function returns OK.

PORTABILITY

   These routines are specific to ncurses.  They  were  not  supported  on
   Version 7, BSD or System V implementations.  It is recommended that any
   code depending on them be conditioned using NCURSES_VERSION.

SEE ALSO

   define_key(3NCURSES).

AUTHOR

   Thomas Dickey.

                                                           keyok(3NCURSES)


More Linux Commands

manpages/glTexCoord4d.3gl.html
glTexCoord4d(3gl) - set the current texture coordinates.....
glTexCoord specifies texture coordinates in one, two, three, or four dimensions. glTexCoord1 sets the current texture coordinates to (s, 0, 0, 1); a call to glT

manpages/CPU_ZERO.3.html
CPU_ZERO(3) - macros for manipulating CPU sets (Man Page)...
The cpu_set_t data structure represents a set of CPUs. CPU sets are used by sched_setaffinity(2) and similar interfaces. The cpu_set_t data type is implemented

manpages/pthread_attr_setstack.3.html
pthread_attr_setstack(3) - set/get stack attributes in threa
The pthread_attr_setstack() function sets the stack address and stack size attributes of the thread attributes object referred to by attr to the values specifie

manpages/isnanf.3.html
isnanf(3) - BSD floating-point classification functions.....
The finite(), finitef(), and finitel() functions return a nonzero value if x is neither infinite nor a not-a-number (NaN) value, and 0 otherwise. The isnan(), i

manpages/curl_easy_cleanup.3.html
curl_easy_cleanup(3) - End a libcurl easy session (ManPage)
This function must be the last function to call for an easy session. It is the opposite of the curl_easy_init(3) function and must be called with the same handl

manpages/slk_restore.3ncurses.html
slk_restore(3ncurses) - curses soft label routines (ManPage)
The slk* functions manipulate the set of soft function-key labels that exist on many terminals. For those terminals that do not have soft labels, curses takes o

manpages/sha.1ssl.html
sha(1ssl) message digests (Commands - Linux manual page)....
The digest functions output the message digest of a supplied file or files in hexadecimal. The digest functions also generate and verify digital signatures usin

manpages/getpt.3.html
getpt(3) - open the pseudoterminal master (PTM) (Man Page)
getpt() opens a pseudoterminal master and returns its file descriptor. It is equivalent to open(/dev/ptmx, O_RDWR | O_NOCTTY); on Linux systems, though the pseu

manpages/dmevent_tool.8.html
dmevent_tool(8) - A utility used to load a DSO into dmeventd
dmevent_tool is a userspace utility used to register/unregister DSOs with the daemon dmeventd. If used with the -m command line parameter users can display all

manpages/getpmsg.2.html
getpmsg(2) - unimplemented system calls - Linux manual page
These system calls are not implemented in the Linux kernel. RETURN VALUE These system calls always return -1 and set errno to ENOSYS. NOTES Note that ftime(3),

manpages/menu_opts_on.3menu.html
menu_opts_on(3menu) - set and get menu options (Man Page)...
The function set_menu_opts sets all the given menus option bits (menu option bits may be logically-ORed together). The function menu_opts_on turns on the given

manpages/dbus-uuidgen.1.html
dbus-uuidgen(1) - Utility to generate UUIDs - Linux man page
The dbus-uuidgen command generates or reads a universally unique ID. Note that the D-Bus UUID has no relationship to RFC 4122 and does not generate UUIDs compat





We can't live, work or learn in freedom unless the software we use is free.