114415Sedward /* 2*62459Sbostic * Copyright (c) 1983, 1993 3*62459Sbostic * The Regents of the University of California. All rights reserved. 433514Sbostic * 542954Sbostic * This code is derived from software contributed to Berkeley by 642954Sbostic * Edward Wang at The University of California, Berkeley. 742954Sbostic * 842835Sbostic * %sccs.include.redist.c% 933514Sbostic * 10*62459Sbostic * @(#)defs.h 8.1 (Berkeley) 06/06/93 1114415Sedward */ 1213985Sedward 1313985Sedward #include "ww.h" 1413985Sedward #include <sys/time.h> 1513985Sedward 1614188Sedward #define NWINDOW 9 1714188Sedward 1813985Sedward struct timeval starttime; 1913985Sedward 2014415Sedward struct ww *window[NWINDOW]; /* the windows */ 2114415Sedward struct ww *selwin; /* the selected window */ 2215621Sedward struct ww *lastselwin; /* the last selected window */ 2314415Sedward struct ww *cmdwin; /* the command window */ 2414415Sedward struct ww *framewin; /* the window for framing */ 2514720Sedward struct ww *boxwin; /* the window for the box */ 2616253Sedward struct ww *fgwin; /* the last foreground window */ 2713985Sedward 2816253Sedward #define isfg(w) ((w)->ww_order <= fgwin->ww_order) 2916253Sedward 3035330Sedward char *default_shell[128]; /* default shell argv */ 3135330Sedward char *default_shellfile; /* default shell program */ 3235330Sedward int default_nline; /* default buffer size for new windows */ 3335330Sedward int default_smooth; /* default "smooth" parameter */ 3416117Sedward char escapec; /* the escape character */ 3514289Sedward 3614841Sedward /* flags */ 3716117Sedward char quit; /* quit command issued */ 3816117Sedward char terse; /* terse mode */ 3916117Sedward char debug; /* debug mode */ 4016282Sedward char incmd; /* in command mode */ 4114415Sedward 4214415Sedward struct ww *getwin(); 4314415Sedward struct ww *openwin(); 4415580Sedward struct ww *vtowin(); 4514415Sedward struct ww *openiwin(); 46