ekg2  GIT master
 All Struktury Danych Pliki Funkcje Zmienne Definicje typów Wyliczenia Wartości wyliczeń Definicje Grupay Strony
bindings.h
Idź do dokumentacji tego pliku.
1 /* $Id$ */
2 
3 /*
4  * (C) Copyright 2003 Wojtek Kaniewski <wojtekka@irc.pl>
5  *
6  * This program is free software; you can redistribute it and/or modify
7  * it under the terms of the GNU General Public License Version 2 as
8  * published by the Free Software Foundation.
9  *
10  * This program is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13  * GNU General Public License for more details.
14  *
15  * You should have received a copy of the GNU General Public License
16  * along with this program; if not, write to the Free Software
17  * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
18  */
19 
20 #ifndef __EKG_NCURSES_BINDINGS_H
21 #define __EKG_NCURSES_BINDINGS_H
22 
23 #include "ecurses.h"
24 
25 #define KEY_CTRL_ENTER 350
26 #define KEY_CTRL_ESCAPE 351
27 #define KEY_CTRL_HOME 352
28 #define KEY_CTRL_END 353
29 #define KEY_CTRL_DC 354
30 #define KEY_CTRL_BACKSPACE 355
31 #define KEY_CTRL_TAB 356
32 
33 extern struct binding *ncurses_binding_map[KEY_MAX + 1];
34 extern struct binding *ncurses_binding_map_meta[KEY_MAX + 1];
35 
36 extern void *ncurses_binding_complete;
37 extern void *ncurses_binding_accept_line;
38 extern int bindings_added_max;
39 
41 
42 void ncurses_binding_add(const char *key, const char *action, int internal, int quiet);
43 void ncurses_binding_delete(const char *key, int quiet);
44 int ncurses_binding_default(void *, va_list);
45 void ncurses_binding_set(int quiet, const char *key, const char *sequence);
46 
47 void binding_helper_scroll(window_t *w, int offset);
49 
50 #endif /* __EKG_NCURSES_BINDINGS_H */
51 
52 /*
53  * Local Variables:
54  * mode: c
55  * c-file-style: "k&r"
56  * c-basic-offset: 8
57  * indent-tabs-mode: t
58  * End:
59  */