Use ANSI escape sequence to reset and clear terminal, rather than using
[gpxe.git] / src / hci / mucurses / wininit.c
1 #include <curses.h>
2
3 /** @file
4  *
5  * MuCurses initialisation functions
6  *
7  */
8
9 /**
10  * Initialise console environment
11  *
12  * @ret *win    return pointer to stdscr
13  */
14 WINDOW *initscr ( void ) {
15         /* determine console size */
16         /* initialise screen */
17         stdscr->scr->init( stdscr->scr );
18         stdscr->height = LINES;
19         stdscr->width = COLS;
20         return stdscr;
21 }
22
23 /**
24  * Finalise console environment
25  *
26  */
27 int endwin ( void ) {
28         stdscr->scr->exit( stdscr->scr );
29         return OK;
30 }