date and time created 88/06/29 21:19:25 by bostic
[unix-history] / usr / src / usr.bin / window / defs.h
CommitLineData
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 20struct timeval starttime;
fd60eebd 21
85af59e4
EW
22struct ww *window[NWINDOW]; /* the windows */
23struct ww *selwin; /* the selected window */
7c0483b9 24struct ww *lastselwin; /* the last selected window */
85af59e4
EW
25struct ww *cmdwin; /* the command window */
26struct ww *framewin; /* the window for framing */
43c1dd56 27struct ww *boxwin; /* the window for the box */
e1dba5dd 28struct ww *fgwin; /* the last foreground window */
e1dba5dd
EW
29
30#define isfg(w) ((w)->ww_order <= fgwin->ww_order)
fd60eebd 31
7ecf4dca
EW
32char *shell[128]; /* the shell argv */
33char *shellfile; /* the shell program */
b1189050
EW
34int nbufline; /* default buffer size for new windows */
35char escapec; /* the escape character */
4cbe417d
EW
36
37 /* flags */
b1189050
EW
38char quit; /* quit command issued */
39char terse; /* terse mode */
40char debug; /* debug mode */
ffa20db4 41char incmd; /* in command mode */
85af59e4
EW
42
43struct ww *getwin();
44struct ww *openwin();
1c0ca238 45struct ww *vtowin();
85af59e4 46struct ww *openiwin();