|
|
1.1 root 1: /***************************************************************************
2: * This program is Copyright (C) 1986, 1987, 1988 by Jonathan Payne. JOVE *
3: * is provided to you without charge, and with no warranty. You may give *
4: * away copies of JOVE, including sources, provided that this notice is *
5: * included in all the files. *
6: ***************************************************************************/
7:
8: struct keymap {
9: int Type; /* keymap type */
10: char *Name; /* keymap name */
11: data_obj **k_keys; /* keys array */
12: char k_alloc_p; /* whether we alloced k_keys */
13: };
14:
15: extern data_obj *MainKeys[NCHARS],
16: *EscKeys[NCHARS],
17: *CtlxKeys[NCHARS];
18:
19: #ifdef MAC /* used in About Jove... */
20: # define F_MAINMAP '\001'
21: # define F_PREF1MAP '\002'
22: # define F_PREF2MAP '\003'
23: #endif
24:
25: extern int
26: this_cmd, /* ... */
27: last_cmd; /* last command ... to implement appending
28: to kill buffer */
29:
30: extern void
31: BindSomething proto((struct data_obj *(*proc)(), struct keymap *map)),
32: BindWMap proto((struct keymap *map, int lastkey, struct data_obj *cmd)),
33: DescMap proto((struct keymap *map, char *pref)),
34: DescWMap proto((struct keymap *map, int key)),
35: dispatch proto((int c));
36:
37: extern int
38: PrefChar proto((int c)); /* Is `c' a prefix character */
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.