source: trunk/minix/commands/yap/keys.h@ 10

Last change on this file since 10 was 9, checked in by Mattia Monga, 14 years ago

Minix 3.1.2a

File size: 938 bytes
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
11PUBLIC 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
18VOID initkeys();
19/*
20 * void initkeys();
21 *
22 * Initializes the keymap(s).
23 */
24
25VOID setused();
26/*
27 * void setused(key);
28 * int key;
29 *
30 * Marks the key "key" as used.
31 */
32
33int 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
42int 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.