.Xr botch fix
[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 *
3dd3a9e5
KB
5 * This code is derived from software contributed to Berkeley by
6 * Edward Wang at The University of California, Berkeley.
7 *
87f529ec 8 * %sccs.include.redist.c%
46e9ea25 9 *
3dd3a9e5 10 * @(#)defs.h 3.21 (Berkeley) %G%
85af59e4 11 */
fd60eebd
EW
12
13#include "ww.h"
fd60eebd 14#include <sys/time.h>
fd60eebd 15
237f359c
EW
16#define NWINDOW 9
17
fd60eebd 18struct timeval starttime;
fd60eebd 19
85af59e4
EW
20struct ww *window[NWINDOW]; /* the windows */
21struct ww *selwin; /* the selected window */
7c0483b9 22struct ww *lastselwin; /* the last selected window */
85af59e4
EW
23struct ww *cmdwin; /* the command window */
24struct ww *framewin; /* the window for framing */
43c1dd56 25struct ww *boxwin; /* the window for the box */
e1dba5dd 26struct ww *fgwin; /* the last foreground window */
e1dba5dd
EW
27
28#define isfg(w) ((w)->ww_order <= fgwin->ww_order)
fd60eebd 29
6a1ef78a
EW
30char *default_shell[128]; /* default shell argv */
31char *default_shellfile; /* default shell program */
32int default_nline; /* default buffer size for new windows */
33int default_smooth; /* default "smooth" parameter */
b1189050 34char escapec; /* the escape character */
4cbe417d
EW
35
36 /* flags */
b1189050
EW
37char quit; /* quit command issued */
38char terse; /* terse mode */
39char debug; /* debug mode */
ffa20db4 40char incmd; /* in command mode */
85af59e4
EW
41
42struct ww *getwin();
43struct ww *openwin();
1c0ca238 44struct ww *vtowin();
85af59e4 45struct ww *openiwin();