Browse Source

- added doxygen @file header

- no longer depends on slk
tags/v0.9.3
Dan Lynch 18 years ago
parent
commit
6fc723c294
1 changed files with 7 additions and 5 deletions
  1. 7
    5
      src/hci/mucurses/wininit.c

+ 7
- 5
src/hci/mucurses/wininit.c View File

1
 #include <curses.h>
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
  * Initialise console environment
10
  * Initialise console environment
12
 WINDOW *initscr ( void ) {
14
 WINDOW *initscr ( void ) {
13
 	/* determine console size */
15
 	/* determine console size */
14
 	/* initialise screen */
16
 	/* initialise screen */
15
-	stdscr->width = 80;
16
-	stdscr->height = ( slks == NULL ? 25 : 24 );
17
+	stdscr->height = LINES;
18
+	stdscr->width = COLS;
17
 	/* set previously unknown window attributes */
19
 	/* set previously unknown window attributes */
18
 	/* refresh screen */
20
 	/* refresh screen */
19
 	return stdscr;
21
 	return stdscr;

Loading…
Cancel
Save