don't open target for writing if we're just verifying the tapes
[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
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 *
5e8b0e60 17 * @(#)defs.h 3.18 (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 25struct timeval starttime;
fd60eebd 26
85af59e4
EW
27struct ww *window[NWINDOW]; /* the windows */
28struct ww *selwin; /* the selected window */
7c0483b9 29struct ww *lastselwin; /* the last selected window */
85af59e4
EW
30struct ww *cmdwin; /* the command window */
31struct ww *framewin; /* the window for framing */
43c1dd56 32struct ww *boxwin; /* the window for the box */
e1dba5dd 33struct ww *fgwin; /* the last foreground window */
e1dba5dd
EW
34
35#define isfg(w) ((w)->ww_order <= fgwin->ww_order)
fd60eebd 36
7ecf4dca
EW
37char *shell[128]; /* the shell argv */
38char *shellfile; /* the shell program */
b1189050
EW
39int nbufline; /* default buffer size for new windows */
40char escapec; /* the escape character */
4cbe417d
EW
41
42 /* flags */
b1189050
EW
43char quit; /* quit command issued */
44char terse; /* terse mode */
45char debug; /* debug mode */
ffa20db4 46char incmd; /* in command mode */
85af59e4
EW
47
48struct ww *getwin();
49struct ww *openwin();
1c0ca238 50struct ww *vtowin();
85af59e4 51struct ww *openiwin();