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
Dan Lynch ad1aca0634 - separated curses.c out into separate source files to optimise
library use later on
- some small mods to existing functions
2006-06-08 17:23:37 +00:00

21 lines
416 B
C

#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;
}