Commit | Line | Data |
---|---|---|
85af59e4 | 1 | /* |
7edc52ec | 2 | * @(#)defs.h 3.15 %G% |
85af59e4 | 3 | */ |
fd60eebd EW |
4 | |
5 | #include "ww.h" | |
fd60eebd | 6 | #include <sys/time.h> |
fd60eebd | 7 | |
237f359c EW |
8 | #define NWINDOW 9 |
9 | ||
fd60eebd | 10 | struct timeval starttime; |
fd60eebd | 11 | |
85af59e4 EW |
12 | struct ww *window[NWINDOW]; /* the windows */ |
13 | struct ww *selwin; /* the selected window */ | |
7c0483b9 | 14 | struct ww *lastselwin; /* the last selected window */ |
85af59e4 EW |
15 | struct ww *cmdwin; /* the command window */ |
16 | struct ww *framewin; /* the window for framing */ | |
43c1dd56 | 17 | struct ww *boxwin; /* the window for the box */ |
e1dba5dd | 18 | struct ww *fgwin; /* the last foreground window */ |
e1dba5dd EW |
19 | |
20 | #define isfg(w) ((w)->ww_order <= fgwin->ww_order) | |
fd60eebd | 21 | |
7ecf4dca EW |
22 | char *shell[128]; /* the shell argv */ |
23 | char *shellfile; /* the shell program */ | |
b1189050 EW |
24 | int nbufline; /* default buffer size for new windows */ |
25 | char escapec; /* the escape character */ | |
4cbe417d EW |
26 | |
27 | /* flags */ | |
b1189050 EW |
28 | char quit; /* quit command issued */ |
29 | char terse; /* terse mode */ | |
30 | char debug; /* debug mode */ | |
ffa20db4 | 31 | char incmd; /* in command mode */ |
85af59e4 EW |
32 | |
33 | struct ww *getwin(); | |
34 | struct ww *openwin(); | |
1c0ca238 | 35 | struct ww *vtowin(); |
85af59e4 | 36 | struct ww *openiwin(); |