12 #define KEY_BUFFER_LEN 256
14 #define KEY_MOUSE 0x200
80 for (n = *node; n; n = n->
next) {
86 n = malloc(
sizeof(
NODE));
104 for (data = (
KEY_DATA *)key_data; data->
cap; data++) {
118 key = tgetstr(data->
cap,
NULL);
121 fprintf(stderr,
"tgetstr( %s ) =", data->
cap);
124 for( i = 0; i < strlen( key ); i++ ) {
125 if( isprint( key[i] ) ) {
126 fprintf(stderr,
" %c", key[i]);
128 fprintf(stderr,
" 0x%2x", key[i]);
132 fprintf(stderr,
" (null)");
134 fprintf(stderr,
"\n");
162 if (k == node->
key) {
184 while(
__fb_con.keyboard_getch() >= 0)