sleep(MESSAGESECS);
LYSleepMsg();
PUBLIC BOOLEAN setup ARGS1(	char *, 	terminal){    char *term_putenv = NULL;    char *buffer = NULL;    char *cp;#if defined(HAVE_SIZECHANGE) && !defined(USE_SLANG) && defined(NOTDEFINED)/* *  Hack to deal with a problem in sysV curses, that screen can't be *  resized to greater than the size used by initscr, which can only *  be called once.  So set environment variables LINES and COLUMNS *  to some suitably large size to force initscr to allocate enough *  space.  Later we get the real window size for setting LYlines *  and LYcols. - AJL & FM * *  Has problems, so we don't use this hack, but the code is here *  if someone wants to play with it some more. - FM */    char *lines_putenv = NULL;    char *cols_putenv = NULL;    if (getenv("LINES") == NULL && getenv("COLUMNS") == NULL) {	StrAllocCopy(lines_putenv, "LINES=120");	(void) putenv(lines_putenv);	StrAllocCopy(cols_putenv, "COLUMNS=240");	(void) putenv(cols_putenv);    }#endif /* HAVE_SIZECHANGE && !USE_SLANG && NOTDEFINED */   /*    *  If the display was not set by a command line option then    *  see if it is available from the environment .    */    if ((cp = LYgetXDisplay()) != NULL) {	StrAllocCopy(x_display, cp);    } else {	FREE(x_display);    }    if (terminal != NULL) {	HTSprintf0(&term_putenv, "TERM=%.106s", terminal);	(void) putenv(term_putenv);    }    /*     *	Query the terminal type.     */    if (dumbterm(getenv("TERM"))) {	char *s;	printf("\n\n  %s\n\n", gettext("Your Terminal type is unknown!"));	printf("  %s [vt100] ", gettext("Enter a terminal type:"));	if (LYSafeGets(&buffer, stdin) != 0)	    if ((s = strchr(buffer, '\n')) != NULL)		*s = '\0';	if (buffer == 0 || *buffer == 0)	    StrAllocCopy(buffer,"vt100");	HTSprintf0(&term_putenv,"TERM=%.106s", buffer);	FREE(buffer);	(void) putenv(term_putenv);	printf("\n%s %s\n", gettext("TERMINAL TYPE IS SET TO"), getenv("TERM"));	sleep(MESSAGESECS);    }    start_curses();#if HAVE_TTYTYPE    /*     *	Get terminal type (strip 'dec-' from vms style types).     */    if (strncmp((CONST char*)ttytype, "dec-vt", 6) == 0) {	(void) setterm(ttytype + 4);    }#endif /* HAVE_TTYTYPE */#if defined(HAVE_SIZECHANGE) && !defined(USE_SLANG) && defined(NOTDEFINED)    if (lines_putenv != NULL) {	/*	 *  Use SIGWINCH handler to set the true window size. - AJL && FM	 *	 *  Has problems, so we don't use this hack, but the code is here	 *  if someone wants to play with it some more. - FM	 */	size_change(0);	lines_putenv[6] = '\0';	(void) putenv(lines_putenv);	cols_putenv[8] = '\0';	(void) putenv(cols_putenv);	FREE(lines_putenv);	FREE(cols_putenv);    } else {	LYlines = LINES;	LYcols = COLS;    }#else    LYlines = LINES;    LYcols = COLS;#endif /* HAVE_SIZECHANGE && !USE_SLANG && USE_NOTDEFINED */    if (LYlines <= 0)	LYlines = 24;    if (LYcols <= 0)	LYcols = 80;    return(1);}