ekg2
 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 #include <ekg/bindings.h>
26 #include <ekg/stuff.h>
27 
28 #define KEY_CTRL_ENTER 350
29 #define KEY_CTRL_ESCAPE 351
30 #define KEY_CTRL_HOME 352
31 #define KEY_CTRL_END 353
32 #define KEY_CTRL_DC 354
33 #define KEY_CTRL_BACKSPACE 355
34 #define KEY_CTRL_TAB 356
35 
36 extern struct binding *ncurses_binding_map[KEY_MAX + 1];
37 extern struct binding *ncurses_binding_map_meta[KEY_MAX + 1];
38 
39 extern void *ncurses_binding_complete;
40 extern void *ncurses_binding_accept_line;
41 extern int bindings_added_max;
42 
44 
45 void ncurses_binding_add(const char *key, const char *action, int internal, int quiet);
46 void ncurses_binding_delete(const char *key, int quiet);
47 int ncurses_binding_default(void *, va_list);
48 void ncurses_binding_set(int quiet, const char *key, const char *sequence);
49 
50 void binding_helper_scroll(window_t *w, int offset);
52 
53 #endif /* __EKG_NCURSES_BINDINGS_H */
54 
55 /*
56  * Local Variables:
57  * mode: c
58  * c-file-style: "k&r"
59  * c-basic-offset: 8
60  * indent-tabs-mode: t
61  * End:
62  */