Commit | Line | Data |
---|---|---|
85af59e4 | 1 | /* |
46e9ea25 KB |
2 | * Copyright (c) 1983 Regents of the University of California. |
3 | * All rights reserved. | |
4 | * | |
5 | * Redistribution and use in source and binary forms are permitted | |
6 | * provided that this notice is preserved and that due credit is given | |
7 | * to the University of California at Berkeley. The name of the University | |
8 | * may not be used to endorse or promote products derived from this | |
9 | * software without specific prior written permission. This software | |
10 | * is provided ``as is'' without express or implied warranty. | |
11 | * | |
12 | * @(#)defs.h 3.17 (Berkeley) %G% | |
85af59e4 | 13 | */ |
fd60eebd EW |
14 | |
15 | #include "ww.h" | |
fd60eebd | 16 | #include <sys/time.h> |
fd60eebd | 17 | |
237f359c EW |
18 | #define NWINDOW 9 |
19 | ||
fd60eebd | 20 | struct timeval starttime; |
fd60eebd | 21 | |
85af59e4 EW |
22 | struct ww *window[NWINDOW]; /* the windows */ |
23 | struct ww *selwin; /* the selected window */ | |
7c0483b9 | 24 | struct ww *lastselwin; /* the last selected window */ |
85af59e4 EW |
25 | struct ww *cmdwin; /* the command window */ |
26 | struct ww *framewin; /* the window for framing */ | |
43c1dd56 | 27 | struct ww *boxwin; /* the window for the box */ |
e1dba5dd | 28 | struct ww *fgwin; /* the last foreground window */ |
e1dba5dd EW |
29 | |
30 | #define isfg(w) ((w)->ww_order <= fgwin->ww_order) | |
fd60eebd | 31 | |
7ecf4dca EW |
32 | char *shell[128]; /* the shell argv */ |
33 | char *shellfile; /* the shell program */ | |
b1189050 EW |
34 | int nbufline; /* default buffer size for new windows */ |
35 | char escapec; /* the escape character */ | |
4cbe417d EW |
36 | |
37 | /* flags */ | |
b1189050 EW |
38 | char quit; /* quit command issued */ |
39 | char terse; /* terse mode */ | |
40 | char debug; /* debug mode */ | |
ffa20db4 | 41 | char incmd; /* in command mode */ |
85af59e4 EW |
42 | |
43 | struct ww *getwin(); | |
44 | struct ww *openwin(); | |
1c0ca238 | 45 | struct ww *vtowin(); |
85af59e4 | 46 | struct ww *openiwin(); |