- separated curses.c out into separate source files to optimise

library use later on
- some small mods to existing functions
This commit is contained in:
Dan Lynch
2006-06-08 17:23:37 +00:00
parent 1697c78848
commit ad1aca0634
12 changed files with 754 additions and 0 deletions

View File

@@ -0,0 +1,20 @@
#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;
}