Home
Search all pages
Subjects
By activity
Professions, Sciences, Humanities, Business, ...
User Interface
Text-based, GUI, Audio, Video, Keyboards, Mouse, Images,...
Text Strings
Conversions, tests, processing, manipulation,...
Math
Integer, Floating point, Matrix, Statistics, Boolean, ...
Processing
Algorithms, Memory, Process control, Debugging, ...
Stored Data
Data storage, Integrity, Encryption, Compression, ...
Communications
Networks, protocols, Interprocess, Remote, Client Server, ...
Hard World Timing, Calendar and Clock, Audio, Video, Printer, Controls...
File System
Management, Filtering, File & Directory access, Viewers, ...
|
|
|
RocketLink!--> Man page versions:
OpenBSD
FreeBSD
Others
define_key(3) define_key(3)
NAME
define_key - define a keycode
SYNOPSIS
#include <curses.h>
int define_key(char *definition, int keycode);
DESCRIPTION
This is an extension to the curses library. It permits an
application to define keycodes with their corresponding
control strings, so that the curses library will interpret
them just as it would the predefined codes in the terminfo
database.
If the given string is null, any existing definition for
the keycode is removed. Similarly, if the given keycode
is negative or zero, any existing string for the given
definition is removed.
RETURN VALUE
The keycode must be greater than zero, else ERR is
returned.
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 con-
ditioned using NCURSES_VERSION.
SEE ALSO
keyok(3).
AUTHOR
Thomas Dickey.
1
Source: OpenBSD 2.6 man pages. Copyright: Portions are copyrighted by BERKELEY SOFTWARE DESIGN, INC., The Regents of the University of California, Massachusetts Institute of Technology, Free Software Foundation, FreeBSD Inc., and others. |
(Corrections, notes, and links courtesy of RocketAware.com)
OpenBSD sources for define_key(3)
Up to: Curses - Curses (Library for text display interfaces)
RocketLink!--> Man page versions:
OpenBSD
FreeBSD
Others
Rapid-Links:
Search | About | Comments | Submit Path: RocketAware > man pages >
define_key.3/
RocketAware.com is a service of Mib Software Copyright 1999, Forrest J. Cavalier III. All Rights Reserved. We welcome submissions and comments
|