we have to initialize escapec before processing arguments
[unix-history] / usr / src / usr.bin / window / defs.h
CommitLineData
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 10struct timeval starttime;
fd60eebd 11
85af59e4
EW
12struct ww *window[NWINDOW]; /* the windows */
13struct ww *selwin; /* the selected window */
7c0483b9 14struct ww *lastselwin; /* the last selected window */
85af59e4
EW
15struct ww *cmdwin; /* the command window */
16struct ww *framewin; /* the window for framing */
43c1dd56 17struct ww *boxwin; /* the window for the box */
e1dba5dd 18struct ww *fgwin; /* the last foreground window */
e1dba5dd
EW
19
20#define isfg(w) ((w)->ww_order <= fgwin->ww_order)
fd60eebd 21
7ecf4dca
EW
22char *shell[128]; /* the shell argv */
23char *shellfile; /* the shell program */
b1189050
EW
24int nbufline; /* default buffer size for new windows */
25char escapec; /* the escape character */
4cbe417d
EW
26
27 /* flags */
b1189050
EW
28char quit; /* quit command issued */
29char terse; /* terse mode */
30char debug; /* debug mode */
ffa20db4 31char incmd; /* in command mode */
85af59e4
EW
32
33struct ww *getwin();
34struct ww *openwin();
1c0ca238 35struct ww *vtowin();
85af59e4 36struct ww *openiwin();