19479b675Sedward /* 2*e85b5252Sbostic * Copyright (c) 1983, 1993 3*e85b5252Sbostic * The Regents of the University of California. All rights reserved. 4bac0d407Sbostic * 58e751acfSbostic * This code is derived from software contributed to Berkeley by 68e751acfSbostic * Edward Wang at The University of California, Berkeley. 78e751acfSbostic * 8122a1d9eSbostic * %sccs.include.redist.c% 9bac0d407Sbostic * 10*e85b5252Sbostic * @(#)defs.h 8.1 (Berkeley) 06/06/93 119479b675Sedward */ 12bed75be5Sedward 13bed75be5Sedward #include "ww.h" 14bed75be5Sedward #include <sys/time.h> 15bed75be5Sedward 1617065f28Sedward #define NWINDOW 9 1717065f28Sedward 18bed75be5Sedward struct timeval starttime; 19bed75be5Sedward 209479b675Sedward struct ww *window[NWINDOW]; /* the windows */ 219479b675Sedward struct ww *selwin; /* the selected window */ 22a6058e91Sedward struct ww *lastselwin; /* the last selected window */ 239479b675Sedward struct ww *cmdwin; /* the command window */ 249479b675Sedward struct ww *framewin; /* the window for framing */ 25180a2a78Sedward struct ww *boxwin; /* the window for the box */ 26157f998dSedward struct ww *fgwin; /* the last foreground window */ 27157f998dSedward 28157f998dSedward #define isfg(w) ((w)->ww_order <= fgwin->ww_order) 29bed75be5Sedward 304b7f8231Sedward char *default_shell[128]; /* default shell argv */ 314b7f8231Sedward char *default_shellfile; /* default shell program */ 324b7f8231Sedward int default_nline; /* default buffer size for new windows */ 334b7f8231Sedward int default_smooth; /* default "smooth" parameter */ 34e82a4325Sedward char escapec; /* the escape character */ 35fc7cb7d8Sedward 36fc7cb7d8Sedward /* flags */ 37e82a4325Sedward char quit; /* quit command issued */ 38e82a4325Sedward char terse; /* terse mode */ 39e82a4325Sedward char debug; /* debug mode */ 40e38e2916Sedward char incmd; /* in command mode */ 419479b675Sedward 429479b675Sedward struct ww *getwin(); 439479b675Sedward struct ww *openwin(); 4443a65183Sedward struct ww *vtowin(); 459479b675Sedward struct ww *openiwin(); 46