Use size-dependant no. of words, with OPEN_MAX as default for fd_set size.
[minix3.git] / commands / yap / keys.h
blob7ec81cab21aee1b3e9caa1f1561186204ee09124
1 /* Copyright (c) 1985 Ceriel J.H. Jacobs */
3 /* $Header$ */
5 # ifndef _KEYS_
6 # define PUBLIC extern
7 # else
8 # define PUBLIC
9 # endif
11 PUBLIC struct keymap {
12 char k_help[80]; /* To be printed on illegal command */
13 struct state *k_mach; /* Finite state machine */
14 char k_esc[10]; /* escape chars */
15 } *currmap, /* pointer to current key map */
16 *othermap; /* pointer to other keymap */
18 VOID initkeys();
20 * void initkeys();
22 * Initializes the keymap(s).
25 VOID setused();
27 * void setused(key);
28 * int key;
30 * Marks the key "key" as used.
33 int isused();
35 * int isused(key);
36 * int key;
38 * returns 0 if the key "key" is not used.
39 * Otherwise it returns non-zero.
42 int is_escape();
44 * int is_escape(c);
45 * int c;
47 * Returns 1 if "c" is an escape char (shell or pipe) in the current
48 * keymap.
50 # undef PUBLIC