david/ipxe
david
/
ipxe
Archived
1
0
Fork 0
This repository has been archived on 2020-12-06. You can view files and clone it, but cannot push or open issues or pull requests.
ipxe/src/hci/mucurses/wininit.c

31 lines
460 B
C
Raw Normal View History

#include <curses.h>
/** @file
*
* MuCurses initialisation functions
*
*/
/**
* Initialise console environment
*
* @ret *win return pointer to stdscr
*/
WINDOW *initscr ( void ) {
/* determine console size */
/* initialise screen */
stdscr->scr->init( stdscr->scr );
stdscr->height = LINES;
stdscr->width = COLS;
return stdscr;
}
/**
* Finalise console environment
*
*/
int endwin ( void ) {
stdscr->scr->exit( stdscr->scr );
return OK;
}