xref: /original-bsd/usr.bin/window/defs.h (revision e85b5252)
1 /*
2  * Copyright (c) 1983, 1993
3  *	The Regents of the University of California.  All rights reserved.
4  *
5  * This code is derived from software contributed to Berkeley by
6  * Edward Wang at The University of California, Berkeley.
7  *
8  * %sccs.include.redist.c%
9  *
10  *	@(#)defs.h	8.1 (Berkeley) 06/06/93
11  */
12 
13 #include "ww.h"
14 #include <sys/time.h>
15 
16 #define NWINDOW 9
17 
18 struct timeval starttime;
19 
20 struct ww *window[NWINDOW];	/* the windows */
21 struct ww *selwin;		/* the selected window */
22 struct ww *lastselwin;		/* the last selected window */
23 struct ww *cmdwin;		/* the command window */
24 struct ww *framewin;		/* the window for framing */
25 struct ww *boxwin;		/* the window for the box */
26 struct ww *fgwin;		/* the last foreground window */
27 
28 #define isfg(w)		((w)->ww_order <= fgwin->ww_order)
29 
30 char *default_shell[128];	/* default shell argv */
31 char *default_shellfile;	/* default shell program */
32 int default_nline;		/* default buffer size for new windows */
33 int default_smooth;		/* default "smooth" parameter */
34 char escapec;			/* the escape character */
35 
36 	/* flags */
37 char quit;			/* quit command issued */
38 char terse;			/* terse mode */
39 char debug;			/* debug mode */
40 char incmd;			/* in command mode */
41 
42 struct ww *getwin();
43 struct ww *openwin();
44 struct ww *vtowin();
45 struct ww *openiwin();
46