Line | |
---|
1 | /* Copyright (c) 1985 Ceriel J.H. Jacobs */
|
---|
2 |
|
---|
3 | /* $Header: /cvsup/minix/src/commands/yap/keys.h,v 1.1.1.1 2005/04/21 14:55:40 beng Exp $ */
|
---|
4 |
|
---|
5 | # ifndef _KEYS_
|
---|
6 | # define PUBLIC extern
|
---|
7 | # else
|
---|
8 | # define PUBLIC
|
---|
9 | # endif
|
---|
10 |
|
---|
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 */
|
---|
17 |
|
---|
18 | VOID initkeys();
|
---|
19 | /*
|
---|
20 | * void initkeys();
|
---|
21 | *
|
---|
22 | * Initializes the keymap(s).
|
---|
23 | */
|
---|
24 |
|
---|
25 | VOID setused();
|
---|
26 | /*
|
---|
27 | * void setused(key);
|
---|
28 | * int key;
|
---|
29 | *
|
---|
30 | * Marks the key "key" as used.
|
---|
31 | */
|
---|
32 |
|
---|
33 | int isused();
|
---|
34 | /*
|
---|
35 | * int isused(key);
|
---|
36 | * int key;
|
---|
37 | *
|
---|
38 | * returns 0 if the key "key" is not used.
|
---|
39 | * Otherwise it returns non-zero.
|
---|
40 | */
|
---|
41 |
|
---|
42 | int is_escape();
|
---|
43 | /*
|
---|
44 | * int is_escape(c);
|
---|
45 | * int c;
|
---|
46 | *
|
---|
47 | * Returns 1 if "c" is an escape char (shell or pipe) in the current
|
---|
48 | * keymap.
|
---|
49 | */
|
---|
50 | # undef PUBLIC
|
---|
Note:
See
TracBrowser
for help on using the repository browser.