*nix Documentation Project
·  Home
 +   man pages
·  Linux HOWTOs
·  FreeBSD Tips
·  *niX Forums

  man pages->OpenBSD man pages -> define_key (3)              



NAME    [Toc]    [Back]

       define_key - define a keycode

SYNOPSIS    [Toc]    [Back]

       #include <curses.h>

       int define_key(char *definition, int keycode);

DESCRIPTION    [Toc]    [Back]

       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

       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    [Toc]    [Back]

       The keycode  must  be  greater  than  zero,  else  ERR  is

PORTABILITY    [Toc]    [Back]

       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

SEE ALSO    [Toc]    [Back]


AUTHOR    [Toc]    [Back]

       Thomas Dickey.
[ Back ]
 Similar pages
Name OS Title
keybound OpenBSD return definition of keycode
keyok OpenBSD enable or disable a keycode
keyok FreeBSD enable or disable a keycode
keybound FreeBSD return definition of keycode
XmTranslateKey Tru64 The default keycode-to-keysym translator
XmTranslateKey HP-UX The default keycode-to-keysym translator
XmTranslateKey IRIX The default keycode-to-keysym translator
getkeycodes Linux print kernel scancode-to-keycode mapping table
setkeycodes Linux load kernel scancode-to-keycode mapping table entries
setlabel IRIX define the label for pfmt and lfmt.
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service