david/ipxe
Archived
1
0

Explicitly call erase(), to cope with platforms where the ANSI clear

screen sequence doesn't work (like bios_console.c on some platforms).
This commit is contained in:
Michael Brown 2006-12-20 06:12:04 +00:00
parent f8910410fe
commit 9ab17484d0

View File

@ -1,3 +1,4 @@
#include <stddef.h>
#include <curses.h>
/** @file
@ -17,6 +18,7 @@ WINDOW *initscr ( void ) {
stdscr->scr->init( stdscr->scr );
stdscr->height = LINES;
stdscr->width = COLS;
erase();
return stdscr;
}
@ -25,6 +27,9 @@ WINDOW *initscr ( void ) {
*
*/
int endwin ( void ) {
attrset ( 0 );
color_set ( 0, NULL );
erase();
stdscr->scr->exit( stdscr->scr );
return OK;
}