mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2024-11-18 00:21:25 +01:00
33 lines
567 B
C
33 lines
567 B
C
|
|
||
|
/* This work is copyrighted. See COPYRIGHT.OLD & COPYRIGHT.NEW for *
|
||
|
* details. If they are missing then this copy is in violation of *
|
||
|
* the copyright conditions. */
|
||
|
|
||
|
/*
|
||
|
** lib_initscr.c
|
||
|
**
|
||
|
** The routine initscr().
|
||
|
**
|
||
|
*/
|
||
|
|
||
|
#include <stdlib.h>
|
||
|
#include "curses.priv.h"
|
||
|
|
||
|
WINDOW *initscr()
|
||
|
{
|
||
|
#ifdef TRACE
|
||
|
_init_trace();
|
||
|
|
||
|
if (_tracing)
|
||
|
_tracef("initscr() called");
|
||
|
#endif
|
||
|
|
||
|
if (newterm(getenv("TERM"), stdout, stdin) == NULL)
|
||
|
return NULL;
|
||
|
else {
|
||
|
def_shell_mode();
|
||
|
def_prog_mode();
|
||
|
return(stdscr);
|
||
|
}
|
||
|
}
|