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.
2006-06-08 19:23:37 +02:00
|
|
|
#include <curses.h>
|
|
|
|
|
2006-06-21 12:35:46 +02:00
|
|
|
/** @file
|
|
|
|
*
|
|
|
|
* MuCurses initialisation functions
|
|
|
|
*
|
|
|
|
*/
|
2006-06-08 19:23:37 +02:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Initialise console environment
|
|
|
|
*
|
|
|
|
* @ret *win return pointer to stdscr
|
|
|
|
*/
|
|
|
|
WINDOW *initscr ( void ) {
|
|
|
|
/* determine console size */
|
|
|
|
/* initialise screen */
|
2006-06-27 19:18:11 +02:00
|
|
|
curscr->init( curscr );
|
2006-06-21 12:35:46 +02:00
|
|
|
stdscr->height = LINES;
|
|
|
|
stdscr->width = COLS;
|
2006-06-27 19:18:11 +02:00
|
|
|
werase( stdscr );
|
|
|
|
|
2006-06-08 19:23:37 +02:00
|
|
|
return stdscr;
|
|
|
|
}
|