iPXE
Functions
wininit.c File Reference

MuCurses initialisation functions. More...

#include <stddef.h>
#include <curses.h>

Go to the source code of this file.

Functions

 FILE_LICENCE (GPL2_OR_LATER_OR_UBDL)
WINDOWinitscr (void)
 Initialise console environment.
int endwin (void)
 Finalise console environment.

Detailed Description

MuCurses initialisation functions.

Definition in file wininit.c.


Function Documentation

FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL  )
WINDOW* initscr ( void  )

Initialise console environment.

Return values:
*winreturn pointer to stdscr

Definition at line 17 of file wininit.c.

References COLS, LINES, move(), and stdscr.

Referenced by login_ui(), pxe_menu_select(), settings_ui(), and show_menu().

                         {
        /* determine console size */
        /* initialise screen */
        stdscr->scr->init( stdscr->scr );
        stdscr->height = LINES;
        stdscr->width = COLS;
        move ( 0, 0 );
        return stdscr;
}
int endwin ( void  )

Finalise console environment.

Definition at line 31 of file wininit.c.

References attrset(), color_set, curs_set(), LINES, mvprintw, NULL, OK, and stdscr.

Referenced by login_ui(), pxe_menu_select(), settings_ui(), and show_menu().

                    {
        attrset ( 0 );
        color_set ( 0, NULL );
        curs_set ( 1 );
        mvprintw ( ( LINES - 1 ), 0, "\n" );
        stdscr->scr->exit( stdscr->scr );
        return OK;
}