xref: /original-bsd/usr.bin/window/defs.h (revision d733c66c)
1 /*
2  * @(#)defs.h	3.16 04/24/85
3  */
4 
5 /*
6  * Copyright (c) 1983 Regents of the University of California,
7  * All rights reserved.  Redistribution permitted subject to
8  * the terms of the Berkeley Software License Agreement.
9  */
10 
11 #include "ww.h"
12 #include <sys/time.h>
13 
14 #define NWINDOW 9
15 
16 struct timeval starttime;
17 
18 struct ww *window[NWINDOW];	/* the windows */
19 struct ww *selwin;		/* the selected window */
20 struct ww *lastselwin;		/* the last selected window */
21 struct ww *cmdwin;		/* the command window */
22 struct ww *framewin;		/* the window for framing */
23 struct ww *boxwin;		/* the window for the box */
24 struct ww *fgwin;		/* the last foreground window */
25 
26 #define isfg(w)		((w)->ww_order <= fgwin->ww_order)
27 
28 char *shell[128];		/* the shell argv */
29 char *shellfile;		/* the shell program */
30 int nbufline;			/* default buffer size for new windows */
31 char escapec;			/* the escape character */
32 
33 	/* flags */
34 char quit;			/* quit command issued */
35 char terse;			/* terse mode */
36 char debug;			/* debug mode */
37 char incmd;			/* in command mode */
38 
39 struct ww *getwin();
40 struct ww *openwin();
41 struct ww *vtowin();
42 struct ww *openiwin();
43