static char *sccsid
= "@(#)main.c 3.12 83/09/19";
int nbufline
= 48; /* compatible */
#define next(a) (*++*(a) ? *(a) : (*++(a) ? *(a) : (char *)usage()))
struct timezone timezone
;
if (p
= rindex(*argv
, '/'))
debug
= strcmp(p
, "a.out") == 0;
if ((shell
= getenv("SHELL")) == 0)
if (shellname
= rindex(shell
, '/'))
(void) gettimeofday(&starttime
, &timezone
);
(void) fprintf(stderr
, "%s.\n", wwerror());
wwnewtty
.ww_tchars
.t_quitc
= wwoldtty
.ww_tchars
.t_quitc
;
wwnewtty
.ww_tchars
.t_stopc
= wwoldtty
.ww_tchars
.t_stopc
;
wwnewtty
.ww_tchars
.t_startc
= wwoldtty
.ww_tchars
.t_startc
;
(void) wwsettty(0, &wwnewtty
);
if ((cmdwin
= wwopen(WWO_REVERSE
, 1, wwncol
, 0, 0, 0)) == 0) {
(void) fprintf(stderr
, "%s.\r\n", wwerror());
if ((framewin
= wwopen(WWO_GLASS
|WWO_FRAME
, wwnrow
, wwncol
, 0, 0, 0))
(void) fprintf(stderr
, "%s.\r\n", wwerror());
wwadd(framewin
, &wwhead
);
if ((boxwin
= wwopen(WWO_GLASS
, wwnrow
, wwncol
, 0, 0, 0)) == 0) {
(void) fprintf(stderr
, "%s.\r\n", wwerror());
(void) signal(SIGCHLD
, wwchild
);
if (dflag
|| doconfig() < 0)
(void) fprintf(stderr
, "window: [-e escape-char] [-t] [-f] [-d]\n");