X-Git-Url: http://ncurses.scripts.mit.edu/?a=blobdiff_plain;f=doc%2Fhtml%2Fman%2Fdefine_key.3x.html;fp=doc%2Fhtml%2Fman%2Fdefine_key.3x.html;h=7e914c7e0388dae045ffdae53624c0acc5c13279;hb=b1f61d9f3aa244512045a6b02e759825d7049d34;hp=0000000000000000000000000000000000000000;hpb=0eb88fc5281804773e2a0c7a488a4452463535ce;p=ncurses.git diff --git a/doc/html/man/define_key.3x.html b/doc/html/man/define_key.3x.html new file mode 100644 index 00000000..7e914c7e --- /dev/null +++ b/doc/html/man/define_key.3x.html @@ -0,0 +1,80 @@ + +
++ + ++
+ define_key - define a keycode + + ++
+ #include <curses.h> + + int define_key(char *definition, int keycode); + + ++
+ This is an extension to the curses library. It permits an + application to define keycodes with their corresponding + control strings, so that the ncurses library will inter- + pret 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. + + ++
+ The keycode must be greater than zero, else ERR 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- + ditioned using NCURSES_VERSION. + + ++
+ keyok(3x). + + ++
+ Thomas Dickey. + + + + + + + + + + + + + + + + + + + ++