|
@@ -1,8 +1,10 @@
|
1
|
1
|
#include <curses.h>
|
2
|
|
-#include <stddef.h>
|
3
|
|
-#include "core.h"
|
4
|
2
|
|
5
|
|
-extern struct _softlabelkeys *slks;
|
|
3
|
+/** @file
|
|
4
|
+ *
|
|
5
|
+ * MuCurses initialisation functions
|
|
6
|
+ *
|
|
7
|
+ */
|
6
|
8
|
|
7
|
9
|
/**
|
8
|
10
|
* Initialise console environment
|
|
@@ -12,8 +14,8 @@ extern struct _softlabelkeys *slks;
|
12
|
14
|
WINDOW *initscr ( void ) {
|
13
|
15
|
/* determine console size */
|
14
|
16
|
/* initialise screen */
|
15
|
|
- stdscr->width = 80;
|
16
|
|
- stdscr->height = ( slks == NULL ? 25 : 24 );
|
|
17
|
+ stdscr->height = LINES;
|
|
18
|
+ stdscr->width = COLS;
|
17
|
19
|
/* set previously unknown window attributes */
|
18
|
20
|
/* refresh screen */
|
19
|
21
|
return stdscr;
|