only executable by group dialer
[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 *
6a1ef78a 17 * @(#)defs.h 3.19 (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
6a1ef78a
EW
37char *default_shell[128]; /* default shell argv */
38char *default_shellfile; /* default shell program */
39int default_nline; /* default buffer size for new windows */
40int default_smooth; /* default "smooth" parameter */
b1189050 41char escapec; /* the escape character */
4cbe417d
EW
42
43 /* flags */
b1189050
EW
44char quit; /* quit command issued */
45char terse; /* terse mode */
46char debug; /* debug mode */
ffa20db4 47char incmd; /* in command mode */
85af59e4
EW
48
49struct ww *getwin();
50struct ww *openwin();
1c0ca238 51struct ww *vtowin();
85af59e4 52struct ww *openiwin();