1 /*
2 * Copyright (c) 1994 by Xerox Corporation. All rights reserved.
3 *
4 * THIS MATERIAL IS PROVIDED AS IS, WITH ABSOLUTELY NO WARRANTY EXPRESSED
5 * OR IMPLIED. ANY USE IS AT YOUR OWN RISK.
6 *
7 * Permission is hereby granted to use or copy this program
8 * for any purpose, provided the above notices are retained on all copies.
9 * Permission to modify the code and to distribute modified code is granted,
10 * provided the above notices are retained, and a notice that the code was
11 * modified is included with the above copyright notice.
12 */
13 14 #ifndef DE_CMDS_H
15 #define DE_CMDS_H
16 17 #define UP 16 /*< ^P */
18 #define DOWN 14 /*< ^N */
19 #define LEFT 2 /*< ^B */
20 #define RIGHT 6 /*< ^F */
21 #define DEL 127 /*< ^? */
22 #define BS 8 /*< ^H */
23 #define UNDO 21 /*< ^U */
24 #define WRITE 23 /*< ^W */
25 #define QUIT 4 /*< ^D */
26 #define REPEAT 18 /*< ^R */
27 #define LOCATE 12 /*< ^L */
28 #define TOP 20 /*< ^T */
29 30 /*
31 * Execute an editor command. The argument may be an integer greater
32 * 255 denoting a windows command, one of the control characters, or
33 * another ASCII character to be used as either a character to be inserted,
34 * a repeat count, or a search string, depending on the current state.
35 */
36 void do_command(int);
37 38 /* OS-independent initialization. */
39 void generic_init(void);
40 41 #endif /* DE_CMDS_H */
42