date and time created 83/11/22 12:48:10 by edward
[unix-history] / usr / src / usr.bin / window / defs.h
CommitLineData
85af59e4 1/*
57fc9db6 2 * @(#)defs.h 3.5 83/11/02
85af59e4 3 */
fd60eebd
EW
4
5#include "ww.h"
6#include <signal.h>
57fc9db6 7#ifndef O_4_1A
fd60eebd
EW
8#include <sys/time.h>
9#include <sys/resource.h>
57fc9db6 10#endif
fd60eebd 11
237f359c
EW
12#define NWINDOW 9
13
fd60eebd 14int nread;
39b49130
EW
15int nreade;
16int nreadz;
17int nreadc;
57fc9db6 18#ifndef O_4_1A
fd60eebd 19struct timeval starttime;
57fc9db6 20#endif
fd60eebd 21
85af59e4 22 /* things for handling input */
fd60eebd
EW
23char ibuf[512];
24char *ibufp;
25int ibufc;
26#define bgetc() (ibufc ? ibufc--, *ibufp++&0x7f : -1)
27#define bpeekc() (ibufc ? *ibufp&0x7f : -1)
28#define bungetc(c) (ibufp > ibuf ? ibufc++, *--ibufp = (c) : -1)
29
85af59e4
EW
30struct ww *window[NWINDOW]; /* the windows */
31struct ww *selwin; /* the selected window */
32struct ww *cmdwin; /* the command window */
33struct ww *framewin; /* the window for framing */
43c1dd56 34struct ww *boxwin; /* the window for the box */
fd60eebd 35
4cbe417d
EW
36char *shell; /* the shell program */
37char *shellname; /* the shell program name (for argv[0]) */
38e09508 38
4cbe417d
EW
39int nbufline; /* number of lines in the buffer */
40
41 /* flags */
fd60eebd 42char quit;
fa59a057 43char terse;
38e09508 44char debug;
86845af3 45char incmd; /* in command mode */
4cbe417d 46char escapec; /* escape character */
85af59e4
EW
47
48struct ww *getwin();
49struct ww *openwin();
50struct ww *idtowin();
51struct ww *openiwin();
52
53 /* stuff for long commands */
54int argc;
55char *argv[100];
56int lineno; /* line number in the source file */
57char insource; /* we're in a source */