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 | |
5e8b0e60 KB |
6 | * provided that the above copyright notice and this paragraph are |
7 | * duplicated in all such forms and that any documentation, | |
8 | * advertising materials, and other materials related to such | |
9 | * distribution and use acknowledge that the software was developed | |
10 | * by the University of California, Berkeley. The name of the | |
11 | * University may not be used to endorse or promote products derived | |
12 | * from this software without specific prior written permission. | |
13 | * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR | |
14 | * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED | |
15 | * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. | |
46e9ea25 | 16 | * |
6a1ef78a | 17 | * @(#)defs.h 3.19 (Berkeley) %G% |
85af59e4 | 18 | */ |
fd60eebd EW |
19 | |
20 | #include "ww.h" | |
fd60eebd | 21 | #include <sys/time.h> |
fd60eebd | 22 | |
237f359c EW |
23 | #define NWINDOW 9 |
24 | ||
fd60eebd | 25 | struct timeval starttime; |
fd60eebd | 26 | |
85af59e4 EW |
27 | struct ww *window[NWINDOW]; /* the windows */ |
28 | struct ww *selwin; /* the selected window */ | |
7c0483b9 | 29 | struct ww *lastselwin; /* the last selected window */ |
85af59e4 EW |
30 | struct ww *cmdwin; /* the command window */ |
31 | struct ww *framewin; /* the window for framing */ | |
43c1dd56 | 32 | struct ww *boxwin; /* the window for the box */ |
e1dba5dd | 33 | struct ww *fgwin; /* the last foreground window */ |
e1dba5dd EW |
34 | |
35 | #define isfg(w) ((w)->ww_order <= fgwin->ww_order) | |
fd60eebd | 36 | |
6a1ef78a EW |
37 | char *default_shell[128]; /* default shell argv */ |
38 | char *default_shellfile; /* default shell program */ | |
39 | int default_nline; /* default buffer size for new windows */ | |
40 | int default_smooth; /* default "smooth" parameter */ | |
b1189050 | 41 | char escapec; /* the escape character */ |
4cbe417d EW |
42 | |
43 | /* flags */ | |
b1189050 EW |
44 | char quit; /* quit command issued */ |
45 | char terse; /* terse mode */ | |
46 | char debug; /* debug mode */ | |
ffa20db4 | 47 | char incmd; /* in command mode */ |
85af59e4 EW |
48 | |
49 | struct ww *getwin(); | |
50 | struct ww *openwin(); | |
1c0ca238 | 51 | struct ww *vtowin(); |
85af59e4 | 52 | struct ww *openiwin(); |