#include <stddef.h>
#include <curses.h>
Go to the source code of this file.
Functions | |
| FILE_LICENCE (GPL2_OR_LATER) | |
| WINDOW * | initscr (void) |
| Initialise console environment. | |
| int | endwin (void) |
| Finalise console environment. | |
Definition in file wininit.c.
| FILE_LICENCE | ( | GPL2_OR_LATER | ) |
| WINDOW* initscr | ( | void | ) |
Initialise console environment.
| *win | return pointer to stdscr |
Definition at line 17 of file wininit.c.
References COLS, LINES, move(), and stdscr.
Referenced by login_ui(), pxe_menu_select(), and settings_ui().
00017 { 00018 /* determine console size */ 00019 /* initialise screen */ 00020 stdscr->scr->init( stdscr->scr ); 00021 stdscr->height = LINES; 00022 stdscr->width = COLS; 00023 move ( 0, 0 ); 00024 return stdscr; 00025 }
| int endwin | ( | void | ) |
Finalise console environment.
Definition at line 31 of file wininit.c.
References attrset(), color_set, LINES, mvprintw, NULL, OK, and stdscr.
Referenced by login_ui(), pxe_menu_select(), and settings_ui().
00031 { 00032 attrset ( 0 ); 00033 color_set ( 0, NULL ); 00034 mvprintw ( ( LINES - 1 ), 0, "\n" ); 00035 stdscr->scr->exit( stdscr->scr ); 00036 return OK; 00037 }
1.5.7.1