david/ipxe
Archived
1
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

21 lines
416 B
C
Raw Normal View History

#include <curses.h>
#include <stddef.h>
#include "core.h"
extern struct _softlabelkeys *slks;
/**
* Initialise console environment
*
* @ret *win return pointer to stdscr
*/
WINDOW *initscr ( void ) {
/* determine console size */
/* initialise screen */
stdscr->width = 80;
stdscr->height = ( slks == NULL ? 25 : 24 );
/* set previously unknown window attributes */
/* refresh screen */
return stdscr;
}