X-Git-Url: https://ncurses.scripts.mit.edu/?a=blobdiff_plain;f=doc%2Fhtml%2Fman%2Fdefine_key.3x.html;h=8556833bd0179f9eb889b342e96db929a8ad257a;hb=da2e96ef7073a13477fe57144926dd159e6089c0;hp=7e914c7e0388dae045ffdae53624c0acc5c13279;hpb=b1f61d9f3aa244512045a6b02e759825d7049d34;p=ncurses.git diff --git a/doc/html/man/define_key.3x.html b/doc/html/man/define_key.3x.html index 7e914c7e..8556833b 100644 --- a/doc/html/man/define_key.3x.html +++ b/doc/html/man/define_key.3x.html @@ -1,18 +1,61 @@ + + +
++define_key(3x) define_key(3x) + + +
- define_key - define a keycode + define_key - define a keycode
- #include <curses.h> + #include <curses.h> - int define_key(char *definition, int keycode); + int define_key(const char *definition, int keycode);@@ -31,21 +74,24 @@
- The keycode must be greater than zero, else ERR is + The keycode must be greater than zero, and the string non- + null, otherwise ERR is returned. ERR may also be returned + if there is insufficient memory to allocate the data to + store the definition. If no error is detected, OK is returned.
- 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- + 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.
- keyok(3x). + keyok(3x), key_defined(3x).@@ -54,22 +100,7 @@ - - - - - - - - - - - - - - - - + define_key(3x)